author | Antonio Rojas
<arojas@archlinux.org> 2020-02-17 20:49:01 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2020-02-17 20:49:01 UTC |
parent | 5536949e028992959296bcb7a53d4f08a006d757 |
PKGBUILD | +5 | -14 |
diff --git a/PKGBUILD b/PKGBUILD index 739bb18..9e0b0cf 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,27 +1,18 @@ # Maintainer: Antonio Rojas <arojas@archlinux.org> -pkgbase=python-pkgconfig -pkgname=(python2-pkgconfig python-pkgconfig) +pkgname=python-pkgconfig pkgver=1.5.1 -pkgrel=3 +pkgrel=4 pkgdesc="Python module to interface with the pkg-config command line tool" arch=(any) url="https://github.com/matze/pkgconfig" license=(MIT) -makedepends=(python-setuptools python2-setuptools) +depends=(python) +makedepends=(python-setuptools) source=("https://pypi.io/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz") sha256sums=('97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f') -package_python2-pkgconfig() { - depends=(python2) - cd pkgconfig-$pkgver - - python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -package_python-pkgconfig() { - depends=(python) +package() { cd pkgconfig-$pkgver python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1