blob: d3203be04c548514bfba36a55a530bc4a00fd0c5 (
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
|
# $Id$
# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Contributor: xantares
pkgbase=python-sphinx-alabaster-theme
pkgname=(python-sphinx-alabaster-theme python2-sphinx-alabaster-theme)
pkgver=0.7.10
pkgrel=1
pkgdesc="Sphinx default theme"
url='https://github.com/bitprophet/alabaster'
arch=('any')
license=('custom:BSD')
makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.org/packages/source/a/alabaster/alabaster-$pkgver.tar.gz")
md5sums=('7934dccf38801faa105f6e7b4784f493')
build() {
cp -r alabaster-"$pkgver" alabaster-"$pkgver"-py2
cd alabaster-"$pkgver"
python setup.py build
cd "$srcdir"/alabaster-"$pkgver"-py2
python2 setup.py build
}
package_python-sphinx-alabaster-theme() {
cd alabaster-"$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
package_python2-sphinx-alabaster-theme() {
cd alabaster-"$pkgver"-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}
|