1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 11:15:13 +03:00
aports/testing/py3-compdb/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
1,007 B
Text

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Maintainer: Orson Teodoro <orsonteodoro@hotmail.com>
pkgname=py3-compdb
_pkgname=${pkgname#py3-*}
pkgver=0.2.0
pkgrel=5
pkgdesc="The compilation database Swiss army knife"
url="https://github.com/Sarcasm/compdb"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/Sarcasm/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver
replaces="py-compdb" # Backwards compat
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
install -d "$pkgdir"/usr/share/doc/$_pkgname/
install -t "$pkgdir"/usr/share/doc/$_pkgname/ README.rst
}
sha512sums="9b3000db087243f20b91d4091d0eaa71951860eba87f74ce5dd895a2f249f816145c30a9e791752e82947d9d9f4bb9dc49738356d0af442f38aa1fd91c43cf22 py3-compdb-0.2.0.tar.gz"