git » pyalpm.git » commit 64a15eb

python 3.6 rebuild

author Felix Yan
2016-12-24 11:23:13 UTC
committer Felix Yan
2016-12-24 11:23:13 UTC
parent 0228aba3476b72f19d2e3a4beefacf37af7035d3

python 3.6 rebuild

PKGBUILD +6 -3

diff --git a/PKGBUILD b/PKGBUILD
index 1e851e1..e6bffc3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,19 @@
 
 pkgname=pyalpm
 pkgver=0.8
-pkgrel=1
+pkgrel=2
 pkgdesc="Libalpm bindings for Python 3"
 arch=('i686' 'x86_64')
 url="http://projects.archlinux.org/users/remy/pyalpm.git/"
 license=('GPL')
-depends=('python>=3.5' 'pacman>=4.2')
+depends=('python>=3.6' 'pacman>=4.2')
 source=("https://sources.archlinux.org/other/pyalpm/$pkgname-$pkgver.tar.gz")
 sha1sums=('b153afc02b7034158558536c4092a302af8030c3')
 
+prepare() {
+  sed -i 's/-ansi/-std=c99/' ${pkgname}-${pkgver}/setup.py
+}
+
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   python setup.py build
@@ -20,4 +24,3 @@ package() {
   cd ${srcdir}/${pkgname}-${pkgver}
   python setup.py install --root=${pkgdir}
 }
-