desktop/pyalpm/PKGBUILD

33 lines
934 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=3
pkgdesc="Libalpm bindings for Python 3"
arch=('x86_64')
url="http://projects.archlinux.org/users/remy/pyalpm.git/"
license=('GPL')
depends=('python3>=3.6' 'pacman>=4.2')
source=("https://sources.archlinux.org/other/pyalpm/$pkgname-$pkgver.tar.gz"
"py35.patch::https://projects.archlinux.org/users/remy/pyalpm.git/patch/?id=dc61782e9bd085a8a09bc7954231eb15e6e085e5")
sha1sums=('62fafb93d30c27b5a5a09df3e802d6e50fed9802'
'd019d6870f89d7b99678065d09d7919b3fa40a39')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i ../py35.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
python3 setup.py build
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
python3 setup.py install --root=${pkgdir}
}