summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2016-05-31 02:54:30 +0200
committeranthraxx2016-05-31 02:54:30 +0200
commit7c4babf7d7a86549805a1666a7d29da3cab17321 (patch)
tree0564d7f873439b5043a29230ea2a52ed55993018
downloadaur-7c4babf7d7a86549805a1666a7d29da3cab17321.tar.gz
addpkg: python-libarchive-c-git 2.4.119.0207af6-1
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD54
2 files changed, 84 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5ea3b33f183
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,30 @@
+# Generated by mksrcinfo v8
+# Tue May 31 00:54:30 UTC 2016
+pkgbase = python-libarchive-c-git
+ pkgdesc = Python interface to libarchive
+ pkgver = 2.4.119.0207af6
+ pkgrel = 1
+ url = https://github.com/Changaco/python-libarchive-c
+ arch = any
+ license = CC0
+ checkdepends = python-pytest-cov
+ checkdepends = python2-pytest-cov
+ makedepends = git
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ makedepends = libarchive
+ source = python-libarchive-c-git::git+https://github.com/Changaco/python-libarchive-c
+ sha512sums = SKIP
+
+pkgname = python-libarchive-c-git
+ depends = python
+ depends = libarchive
+ provides = python-libarchive-c
+ conflicts = python-libarchive-c
+
+pkgname = python2-libarchive-c-git
+ depends = python2
+ depends = libarchive
+ provides = python2-libarchive-c
+ conflicts = python2-libarchive-c
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..5f067bca4e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgbase=python-libarchive-c-git
+pkgname=('python-libarchive-c-git' 'python2-libarchive-c-git')
+pkgver=2.4.119.0207af6
+pkgrel=1
+pkgdesc='Python interface to libarchive'
+url='https://github.com/Changaco/python-libarchive-c'
+arch=('any')
+license=('CC0')
+makedepends=('git' 'python-setuptools' 'python2-setuptools' 'libarchive')
+checkdepends=('python-pytest-cov' 'python2-pytest-cov')
+source=(${pkgbase}::git+https://github.com/Changaco/python-libarchive-c)
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgbase}
+ printf "%s.%s.%s" "$(git describe --tags --abbrev=0)" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd ${pkgbase}
+ sed '/os.umask(2)/d' -i setup.py
+ # wonky pile of garbage
+ sed 's| --dirty||' -i version.py
+
+}
+
+check() {
+ cd ${pkgbase}
+ LC_CTYPE=en_US.UTF-8 py.test
+ LC_CTYPE=en_US.UTF-8 py.test2
+}
+
+package_python-libarchive-c-git() {
+ depends=('python' 'libarchive')
+ provides=('python-libarchive-c')
+ conflicts=('python-libarchive-c')
+ cd ${pkgbase}
+ python setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+package_python2-libarchive-c-git() {
+ depends=('python2' 'libarchive')
+ provides=('python2-libarchive-c')
+ conflicts=('python2-libarchive-c')
+ cd ${pkgbase}
+ python2 setup.py install -O1 --root="${pkgdir}"
+ install -Dm 644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README"
+}
+
+# vim: ts=2 sw=2 et: