summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 874ceeca39273febc4a133db932e7f5aec601d1c (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: Melvin Vermeeren <mail@mel.vin>

_name=sphinx-multibuild
pkgname=("python-${_name}" "python2-${_name}")
pkgver=1.1.1
pkgrel=2
pkgdesc="Allow sphinx to build with multiple source directories and watch for changes."
arch=('any')
url="https://github.com/rowanG077/sphinx-multibuild"
license=('MIT')
makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
	'0001-fix-compatibility-with-py3-when-installed-as-system-.patch')
sha256sums=('60e7f1ad87f585ecf323396cc43337ca6a39c275a412ce0d391d4adaa12b8a2d'
            '5a8a5daee7458f6311bd04b5799907319a7764238522d64daa72da4a6398abde')

prepare() {
	cd "$_name-$pkgver"

	patch -Np1 -i ../0001-fix-compatibility-with-py3-when-installed-as-system-.patch

	cp -a "${srcdir}/$_name-$pkgver" "${srcdir}/${_name}2-$pkgver"
}

package_python-sphinx-multibuild() {
	depends=('python' 'python-setuptools' 'python-watchdog' 'python-sphinx')

	cd "$_name-$pkgver"
	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}

package_python2-sphinx-multibuild() {
	depends=('python2' 'python2-setuptools' 'python2-watchdog' 'python2-sphinx')

	cd "${_name}2-$pkgver"
	python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
}