forked from BlackArch/blackarch-pkgbuilds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPKGBUILD-python-dual-lib-setuptools
47 lines (34 loc) · 1.09 KB
/
PKGBUILD-python-dual-lib-setuptools
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
38
39
40
41
42
43
44
45
46
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.
pkgbase=python-NAME
pkgname=('python-NAME' 'python2-NAME')
_pkgname=realname
pkgver=VERSION
pkgrel=1
pkgdesc='Short description without using the package name itself.'
arch=('any' OR 'x86_64' 'aarch64')
url='URL pointing to download section of package'
license=('WHATEVER' OR 'custom:unknown')
makedepends=('python-setuptools' 'python2-setuptools')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('')
prepare() {
cp -a "$_pkgname-$pkgver"{,-2}
}
build() {
cd "$_pkgname-$pkgver-2"
python2 setup.py build
cd "$srcdir/$_pkgname-$pkgver"
python setup.py build
}
package_python2-NAME() {
depends=('python2-what' 'python2-ever')
cd "$_pkgname-$pkgver-2"
python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}
package_python-NAME() {
depends=('python-what' 'python-ever')
cd "$_pkgname-$pkgver"
python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}