git » python-pkgconfig.git » commit 6024e5f

Update to 1.5.0

author Antonio Rojas
2019-03-31 10:44:38 UTC
committer Antonio Rojas
2019-03-31 10:44:38 UTC
parent 986815bd5eeaa394b7c83c4f92afa1e44344d072

Update to 1.5.0

PKGBUILD +11 -5

diff --git a/PKGBUILD b/PKGBUILD
index 3d4a11b..229bf6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,19 +2,25 @@
 
 pkgbase=python-pkgconfig
 pkgname=(python2-pkgconfig python-pkgconfig)
-pkgver=1.4.0
+pkgver=1.5.0
 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)
+makedepends=(python-setuptools python2-setuptools poetry)
 source=($pkgbase-$pkgver.tar.gz::"https://github.com/matze/pkgconfig/archive/v$pkgver.tar.gz")
-sha256sums=('38c5de8392f4acfe7f36b25d113c496d68f534e983afdbd0ba7240c8c475b161')
+sha256sums=('05c0735821964dfc6814c2926e293afa2b1c55d3fdb93882a3ec7f4e6dad32c3')
+
+prepare() {
+  cd pkgconfig-$pkgver
+  poetry build
+  tar -xzf dist/pkgconfig-$pkgver.tar.gz
+}
 
 package_python2-pkgconfig() {
   depends=(python2)
-  cd pkgconfig-$pkgver
+  cd pkgconfig-$pkgver/pkgconfig-$pkgver
 
   python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
@@ -22,7 +28,7 @@ package_python2-pkgconfig() {
 
 package_python-pkgconfig() {
   depends=(python)
-  cd pkgconfig-$pkgver
+  cd pkgconfig-$pkgver/pkgconfig-$pkgver
   
   python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE