summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2020-03-04 08:51:00 +0300
committerCaleb Maclennan2020-03-04 08:51:57 +0300
commit49294b03dab8bf9c1ea9a614e490995be22b987b (patch)
tree9a13b2082d6878affe7bdbd3f3804d5ccbfbcf28
parent6010c92eec6297a643029b8113055e544adbdc03 (diff)
downloadaur-49294b03dab8bf9c1ea9a614e490995be22b987b.tar.gz
Split build() and package() stages, correct docs path
-rw-r--r--.SRCINFO4
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD34
3 files changed, 24 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a04b5fa30fa..cece3994de6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-agate-dbf
pkgdesc = Adds read support for dbf files to agate
pkgver = 0.2.1
- pkgrel = 1
+ pkgrel = 2
url = http://agate-dbf.readthedocs.org/
arch = any
license = MIT
@@ -11,7 +11,7 @@ pkgbase = python-agate-dbf
depends = python-agate>=1.5.0
depends = python-dbfread>=2.0.5
depends = python-sphinx_rtd_theme>=0.1.6
- source = https://github.com/wireservice/agate-dbf/archive/0.2.1.tar.gz
+ source = agate-dbf-0.2.1.tar.gz::https://github.com/wireservice/agate-dbf/archive/0.2.1.tar.gz
sha256sums = de6ec33fb3e033c4c74376997265e57fbd585195acf0386e28550209bae94a08
pkgname = python-agate-dbf
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0ca50ff4dd9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!./.SRCINFO
+!./.gitignore
+!./PKGBUILD
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"
+}