blob: ef80f4e27220aaeb3cc245f74473e0e6f17cced0 (
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
38
39
40
41
42
43
44
45
46
47
48
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-alabaster
_pkgname=alabaster
pkgver=0.7.9
pkgrel=1
pkgdesc="Modified Kr Sphinx doc theme"
url="https://github.com/bitprophet/alabaster"
arch="noarch"
license="BSD"
depends=""
makedepends="python2-dev python3-dev py-setuptools"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bitprophet/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
python2 setup.py build || return 1
python3 setup.py build || return 1
}
package() {
mkdir -p "$pkgdir"
}
_py2() {
replaces="$pkgname"
_py python2
}
_py3() {
_py python3
}
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
md5sums="efcded08511153c141385299a0121f5a alabaster-0.7.9.tar.gz"
sha256sums="fcabfbc1ee73ce31e5b786468adaafb11ef1c50e003989bdf3dcdfbc06ba5624 alabaster-0.7.9.tar.gz"
sha512sums="33167bac954fa86a9820e158ad8955c25a6057ce82f1178f0145a3487244772b82c3001ed9fd7a13ddc680889986adbc9c178df2892256b5977b848f101366c5 alabaster-0.7.9.tar.gz"
|