blob: e6ed5cdd3afc20e6287435d2af00efb278a22c22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: katt <magunasu.b97@gmail.com>
# Contributor: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: bartus
# Contributor: Rémy Oudompheng <remy@archlinux.org>
# Contributor: Dave Reisner <d@falconindy.com>
pkgname=pyalpm-next-git
pkgver=0.9.2.r26.gbf68871
pkgrel=1
pkgdesc='Python 3 bindings for libalpm (Git version, compatible with pacman-git)'
arch=(x86_64)
url=https://gitlab.archlinux.org/archlinux/pyalpm
license=(GPL)
depends=(python pacman-git)
makedepends=(git python-setuptools python-pkgconfig)
checkdepends=(python-pytest python-pytest-pacman)
provides=("${pkgname%-next-git}=$pkgver")
conflicts=("${pkgname%-next-git}")
source=(git+"${url}".git#branch=next)
md5sums=('SKIP')
pkgver() {
git -C ${pkgname%-next-git} describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd ${pkgname%-next-git}
python setup.py build
}
check() {
cd ${pkgname%-next-git}
PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.9" pytest
}
package() {
cd ${pkgname%-next-git}
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|