author | Antonio Rojas
<arojas@archlinux.org> 2019-04-01 20:31:45 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2019-04-01 20:31:45 UTC |
parent | 6024e5f916983bcf0450bb8a1a994201e190d636 |
PKGBUILD | +6 | -12 |
diff --git a/PKGBUILD b/PKGBUILD index 229bf6c..d404e40 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,25 +2,19 @@ pkgbase=python-pkgconfig pkgname=(python2-pkgconfig python-pkgconfig) -pkgver=1.5.0 +pkgver=1.5.1 pkgrel=1 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 poetry) -source=($pkgbase-$pkgver.tar.gz::"https://github.com/matze/pkgconfig/archive/v$pkgver.tar.gz") -sha256sums=('05c0735821964dfc6814c2926e293afa2b1c55d3fdb93882a3ec7f4e6dad32c3') - -prepare() { - cd pkgconfig-$pkgver - poetry build - tar -xzf dist/pkgconfig-$pkgver.tar.gz -} +makedepends=(python-setuptools python2-setuptools) +source=("https://pypi.io/packages/source/p/pkgconfig/pkgconfig-$pkgver.tar.gz") +sha256sums=('97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f') package_python2-pkgconfig() { depends=(python2) - cd pkgconfig-$pkgver/pkgconfig-$pkgver + cd pkgconfig-$pkgver python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE @@ -28,7 +22,7 @@ package_python2-pkgconfig() { package_python-pkgconfig() { depends=(python) - cd pkgconfig-$pkgver/pkgconfig-$pkgver + cd pkgconfig-$pkgver python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE