makedeb


hyfetch 1.0.7-3


Neofetch with LGBTQ pride flags.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for hyfetch.

# Maintainer: Menci <huanghaorui301@gmail.com>
# Contributor: Aleksana QWQ <me@aleksana.moe>

_repo="hykilpikonna/hyfetch"
pkgname=hyfetch
pkgver=1.0.7
pkgrel=3
pkgdesc="Neofetch with LGBTQ pride flags."
arch=('any')
url='https://github.com/hykilpikonna/hyfetch'
license=('MIT')
depends=('python3' 'python3-setuptools' 'python3-typing-extensions')
makedepends=('git')

prepare() {
  git clone "$url" "${srcdir}/${pkgname}" --recursive
  cd "${srcdir}/${pkgname}"
  git checkout "$(git describe --tags --abbrev=0)"
}

pkgver() {
  cd "${srcdir}/${pkgname}"
  git describe --tags --abbrev=0
}

build() {
  cd ${pkgname}
  git checkout "$pkgver"
  python3 setup.py build
}

package() {
  cd ${pkgname}
  python3 setup.py install --root="$pkgdir/" --optimize=1 --skip-build --install-layout=deb
  mv LICENSE.md copyright
  install -Dm644 copyright -t "${pkgdir}/usr/share/doc/${pkgname}"
}