summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 72ecf92c804c901d08d8096fd50140803f9f2fcd (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
# Maintainer: John Ramsden <johnramsden [at] riseup [dot] net>

_pkgname=pyzfscmds
pkgname="python-${_pkgname}"
pkgver=0.1.4
_version_suffix="beta"
pkgrel=1
pkgdesc="ZFS CLI wrapper library"
arch=('any')
url="http://github.com/johnramsden/pyzfscmds"
license=('BSD' 'custom:BSD 3 clause')
depends=('zfs' '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=('fb93df37ddd2ab3f313ca75608ab209e')
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}/LICENSE"
}