desktop/pyalpm/PKGBUILD
2015-04-14 08:55:44 -07:00

29 lines
761 B
Bash

# Apps Packages for Chakra, part of www.chakra-project.org
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
# Contributor: Rémy Oudompheng <remy@archlinux.org>
pkgname=pyalpm
pkgver=0.7
pkgrel=1
pkgdesc="Libalpm bindings for Python 3"
arch=('x86_64')
url="http://projects.archlinux.org/users/remy/pyalpm.git/"
license=('GPL')
depends=('python3>=3.4' 'pacman>=4.2')
source=("https://sources.archlinux.org/other/pyalpm/$pkgname-$pkgver.tar.gz")
sha1sums=('62fafb93d30c27b5a5a09df3e802d6e50fed9802')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# workaround Python packaging issue (FS#34658)
export CFLAGS="$CFLAGS -Wno-format"
python3 setup.py build
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
python3 setup.py install --root=${pkgdir}
}