summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ramsden2018-11-16 19:38:53 -0800
committerJohn Ramsden2018-11-16 19:38:53 -0800
commit398639184990a3eb9557dc975c0236da44d7b249 (patch)
treeed78856974cdf9a714fc00ef748f08911209f304
downloadaur-398639184990a3eb9557dc975c0236da44d7b249.tar.gz
Add initial PKGBUILD
-rw-r--r--.SRCINFO21
-rw-r--r--.gitignore5
-rwxr-xr-xPKGBUILD28
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2535de1b608
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = zedenv-grub
+ pkgdesc = zedenv plugin for GRUB (ALPHA)
+ pkgver = 0.1.2
+ pkgrel = 1
+ url = http://github.com/johnramsden/zedenv-grub
+ arch = any
+ license = BSD
+ license = custom:BSD 3 clause
+ makedepends = git
+ makedepends = python-pip
+ depends = zfs
+ depends = python
+ depends = python-setuptools
+ depends = python-click
+ depends = python-pyzfscmds
+ conflicts = zedenv-grub-git
+ source = zedenv-grub-0.1.2.tar.gz::https://github.com/johnramsden/zedenv-grub/archive/v0.1.2-alpha.tar.gz
+ md5sums = 63c83dac64d7ebc234e0409b742c27ed
+
+pkgname = zedenv-grub
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..07137da8a17
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*
+
+!/PKGBUILD
+!/.SRCINFO
+!/.gitignore
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..051e8a4cb7c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>
+
+pkgname=zedenv-grub
+pkgver=0.1.2
+_version_suffix="alpha"
+pkgrel=1
+pkgdesc="zedenv plugin for GRUB (ALPHA)"
+arch=('any')
+url="http://github.com/johnramsden/zedenv-grub"
+license=('BSD' 'custom:BSD 3 clause')
+depends=('zfs' 'python' 'python-setuptools' 'python-click' 'python-pyzfscmds')
+makedepends=('git' 'python-pip')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/johnramsden/${pkgname}/archive/v${pkgver}-${_version_suffix}.tar.gz")
+md5sums=('63c83dac64d7ebc234e0409b742c27ed')
+conflicts=('zedenv-grub-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}/LICENSE"
+}