summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJohn Ramsden2018-05-29 15:18:56 -0700
committerJohn Ramsden2018-05-29 15:18:56 -0700
commit76d6bd9387e092d562a694b4c15e494d04035225 (patch)
tree62c1c34464b55699b6ce33ea48f1c14dc10d52df /PKGBUILD
downloadaur-76d6bd9387e092d562a694b4c15e494d04035225.tar.gz
Add initial package
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..2699581ca71
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>
+
+_pkgname=pyzfscmds
+pkgname="python-${_pkgname}"
+pkgver=0.1.0
+_version_suffix="alpha"
+pkgrel=1
+pkgdesc="ZFS CLI Function Wrapper"
+arch=('any')
+url="http://github.com/johnramsden/pyzfscmds"
+license=('BSD' 'custom:BSD 3 clause')
+depends=('zfs-linux' 'python' 'python-setuptools')
+makedepends=('git' 'python-pip')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/johnramsden/${_pkgname}/archive/v${pkgver}-${_version_suffix}.tar.gz")
+md5sums=('ef47bc6d8c3b226c915e01c251fe251e')
+conflicts=('python-pyzfscmds-git')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}-${_version_suffix}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}-${_version_suffix}"
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+
+ install -d "${pkgdir}/usr/share/license/${pkgname}"
+ install -m 755 "LICENSE" "${pkgdir}/usr/share/license/${pkgname}/LISCENSE"
+}