makedeb


python3-devgoldyutils 3.0.0-0


THEGOLDENPRO utils library.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for python3-devgoldyutils.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_gitname=devgoldyutils
pkgname=python3-devgoldyutils
pkgver=3.0.0
pkgrel=0
pkgdesc="THEGOLDENPRO utils library."
arch=('all')
license=('GPL3')
depends=('python3')
makedepends=('python3-build' 'python3-installer' 'python3-wheel' 'python3-setuptools-scm')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/THEGOLDENPRO/devgoldyutils/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('22144469d594d4d0605d26fc93b538c5d4bcb400554781ee2d1a4e8d0a49daff0ae72a346717bbb9f1babaee53c87801b4d1a1ce78c222297a1d98e289888e64')
conflicts=('python3-devgoldyutils-git')

build(){
  cd "$srcdir/${_gitname}-${pkgver}"
  python3 -m build --no-isolation --wheel
}

package() {
  cd "$srcdir/${_gitname}-${pkgver}"
  python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build
  # Manual remove local
  mv "$pkgdir/usr/local/"* "$pkgdir/usr/"
  rmdir "$pkgdir/usr/local" 
  #doc
  install -Dm644 "README.md" "$pkgdir/usr/share/doc/$pkgname/readme"
  ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$pkgname/"
}