summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71df6b560af0b7aa556132f7117cc94ea25f6760 (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
35
36
37
# Maintainer: brent s. <bts[at]square-r00t[dot]net>
validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
pkgname=('python-pylibacl' 'python2-pylibacl')
pkgver=0.5.3
pkgrel=5
pkgdesc="A python extension module that allows you to manipulate the POSIX.1e ACLs. (Fixed for python 3)"
arch=( 'i686' 'x86_64' )
url="http://pylibacl.k1024.org/"
license=( 'LGPL' )
depends=( 'python' 'python2' )
makedepends=('python-distribute' 'python2-distribute' 'python' 'python2' 'python-setuptools' 'python2-setuptools')
_pkgname=pylibacl
install=
changelog=
noextract=()
source=("https://files.pythonhosted.org/packages/source/p/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
        "${_pkgname}-${pkgver}.tar.gz.sig")
sha512sums=('7d58a3a64e939a8891333a0fb8aa6e12dcbbf09e4e829f86fd1bb41693dd4f734a4ab907770e8e341476594aa495b5308a26d495ebf251dcda308ee46e5392ad'
            'SKIP')

package_python-pylibacl() {
	depends=('python')
	cd "${srcdir}/${_pkgname}-${pkgver}"
	python3 setup.py install --root="${pkgdir}" --optimize=1
}

package_python2-pylibacl() {
	depends=('python2')
	conflicts=('pylibacl')
	provides=('pylibacl')
	pkgdesc="A python extension module that allows you to manipulate the POSIX.1e ACLs."
	cd "${srcdir}/${_pkgname}-${pkgver}"
	python2 setup.py install --root="${pkgdir}" --optimize=1
}