blob: 3b9be51b8dd1a12270b7e38673f8c7f47fb2aefc (
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
|
# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>
pkgname=zedenv-git
pkgver=r158.5516421
pkgrel=1
pkgdesc="Utility to manage ZFS Boot Environments"
arch=('any')
url="http://github.com/johnramsden/zedenv"
license=('BSD' 'custom:BSD 3 clause')
depends=('zfs' 'python' 'python-setuptools' 'python-click' 'python-pyzfscmds>=0.1.4')
makedepends=('git' 'python-pip')
source=('zedenv::git+https://github.com/johnramsden/zedenv#branch=master')
md5sums=('SKIP')
conflicts=('zedenv')
provides=('zedenv')
optdepends=('zedenv-grub: zedenv plugin for GRUB')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/${pkgname%-git}"
python setup.py build
}
package() {
cd "${srcdir}/${pkgname%-git}"
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"
}
|