summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 18 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index df7c16bd4f9..27f040ef34d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,14 @@
# Maintainer: Gabriel Magno <gabrielmagno1@gmail.com>
+# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Michał Pałubicki <maln0ir@gmx.com>
_pkgname=agate-dbf
pkgname=python-$_pkgname
pkgver=0.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Adds read support for dbf files to agate"
arch=('any')
-url="http://agate-dbf.readthedocs.org/"
+url='http://agate-dbf.readthedocs.org/'
license=('MIT')
depends=(
'python'
@@ -19,25 +20,26 @@ makedepends=(
'python-setuptools'
'python-sphinx>=1.2.2'
)
-source=("https://github.com/wireservice/agate-dbf/archive/${pkgver}.tar.gz")
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/wireservice/$_pkgname/archive/$pkgver.tar.gz")
sha256sums=('de6ec33fb3e033c4c74376997265e57fbd585195acf0386e28550209bae94a08')
-package() {
- cd "$srcdir/$_pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1
-
- python setup.py build_sphinx
- mkdir -p "$pkgdir/usr/share/doc"
- cp -rv "$srcdir/$_pkgname-$pkgver/build/sphinx/html" "$pkgdir/usr/share/doc/$_pkgname"
-
- _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')"
- rm -rvf "$pkgdir/usr/share/doc/$_pkgname/_static"
- ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "$pkgdir/usr/share/doc/$_pkgname/_static"
+build() {
+ cd "$_pkgname-$pkgver"
+ python setup.py build
+ python setup.py build_sphinx
+ _rtd_theme_path="$(python -c 'import sphinx_rtd_theme; print(sphinx_rtd_theme.get_html_theme_path())')"
+ rm -rvf "build/sphinx/html/_static"
+ ln -svf "$_rtd_theme_path/sphinx_rtd_theme/static" "build/sphinx/html/_static"
}
check() {
- cd "$srcdir/$_pkgname-$pkgver"
+ cd "$_pkgname-$pkgver"
python setup.py test --test-suite=tests
}
-# vim:set ts=2 sw=2 et:
+package() {
+ cd "$_pkgname-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ mkdir -p "$pkgdir/usr/share/doc"
+ cp -rv "build/sphinx/html" "$pkgdir/usr/share/doc/$pkgname"
+}