summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hsuan Yen2018-12-22 11:52:20 +0800
committerChih-Hsuan Yen2018-12-22 11:52:20 +0800
commit873be84cd75a3243fe9dcb2e06fed60b5715c447 (patch)
tree8d6234d06885a5a9c63b5045702c1fee0fa0fd96
parent7896a99e863aacd0c3c7050bd0770f5f832f098d (diff)
downloadaur-873be84cd75a3243fe9dcb2e06fed60b5715c447.tar.gz
new package
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD28
2 files changed, 24 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7e65ffc8ca..27b0d5b3b91 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,17 @@
pkgbase = pyalpm-git
pkgdesc = Libalpm bindings for Python 3 (Git version)
- pkgver = 0.8.3.r0.g284d480
+ pkgver = 0.8.4.r8.g06fa0ea
pkgrel = 1
url = https://git.archlinux.org/pyalpm.git/
- arch = i686
arch = x86_64
license = GPL3
+ checkdepends = python-nose
makedepends = git
depends = python>=3.6
depends = pacman>=5
- provides = pyalpm=0.8.3.r0.g284d480
+ provides = pyalpm=0.8.4.r8.g06fa0ea
conflicts = pyalpm
- source = git+https://projects.archlinux.org/git/pyalpm.git
+ source = git+https://git.archlinux.org/pyalpm.git
sha256sums = SKIP
pkgname = pyalpm-git
diff --git a/PKGBUILD b/PKGBUILD
index c261a421a2c..d88d35f08ee 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,43 @@
-# Contributor: Chih-Hsuan Yen <yan12125@gmail.com>
+# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Dave Reisner <d@falconindy.com>
_pkgname=pyalpm
pkgname=$_pkgname-git
-pkgver=0.8.3.r0.g284d480
+pkgver=0.8.4.r8.g06fa0ea
pkgrel=1
pkgdesc="Libalpm bindings for Python 3 (Git version)"
-arch=('i686' 'x86_64')
+arch=('x86_64')
url="https://git.archlinux.org/pyalpm.git/"
license=('GPL3')
depends=('python>=3.6' 'pacman>=5')
+makedepends=('git')
+checkdepends=('python-nose')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
-makedepends=('git')
-source=('git+https://projects.archlinux.org/git/pyalpm.git')
+source=('git+https://git.archlinux.org/pyalpm.git')
sha256sums=('SKIP')
pkgver() {
cd $_pkgname
( set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
)
}
+build() {
+ cd $_pkgname
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname
+
+ PYTHONPATH="$(ls -d build/lib.linux-$CARCH-*)" nosetests -v tests
+}
+
package() {
cd $_pkgname
- python setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}