summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122020-05-24 08:34:42 +0200
committerwillemw122020-05-24 08:34:42 +0200
commit3cfbe463a5a6581b031889ef51f5e40ed4fc3a91 (patch)
treebf5cbe972757233e83c4f61f12bc8538b8116df0
parentb4b741d41ba520516ccc8c5151ce0d65a1e5c355 (diff)
downloadaur-3cfbe463a5a6581b031889ef51f5e40ed4fc3a91.tar.gz
4.2
Add tests. Remove patch. Gzip man page
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD39
2 files changed, 26 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 97348f1c0dd..e75649b79cd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,11 @@
pkgbase = gnofract4d
pkgdesc = Create beautiful fractal images
- pkgver = 4.0.1
+ pkgver = 4.2
pkgrel = 1
url = https://edyoung.github.io/gnofract4d/
arch = any
license = BSD
+ checkdepends = python-pytest
makedepends = docbook-xsl
makedepends = libxslt
depends = gtk3
@@ -12,8 +13,8 @@ pkgbase = gnofract4d
depends = libpng
depends = python-cairo
depends = python-gobject
- source = https://github.com/edyoung/gnofract4d/archive/v4.0.1.tar.gz
- md5sums = 29da10ba5a2747349bae420de956db5b
+ source = https://github.com/edyoung/gnofract4d/archive/v4.2.tar.gz
+ md5sums = 349582327acf46c973638169b8f07afd
pkgname = gnofract4d
diff --git a/PKGBUILD b/PKGBUILD
index 9ae80fa00fa..c9157ab4494 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,25 +4,28 @@
# Contributor: Thomas Dziedzic <gostrc@gmail.com>
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
+# Note: a part of build() and check() require a graphical environment
+
pkgname=gnofract4d
-pkgver=4.0.1
+pkgver=4.2
pkgrel=1
pkgdesc="Create beautiful fractal images"
arch=('any')
url="https://edyoung.github.io/gnofract4d/"
license=('BSD')
-makedepends=('docbook-xsl' 'libxslt')
depends=('gtk3' 'libjpeg' 'libpng' 'python-cairo' 'python-gobject')
-source=(https://github.com/edyoung/gnofract4d/archive/v$pkgver.tar.gz)
-md5sums=('29da10ba5a2747349bae420de956db5b')
+makedepends=('docbook-xsl' 'libxslt')
+checkdepends=('python-pytest')
+source=("https://github.com/edyoung/gnofract4d/archive/v$pkgver.tar.gz")
+md5sums=('349582327acf46c973638169b8f07afd')
-prepare() {
- cd $pkgname-$pkgver
- # Patch for createdocs.py
- sed -i "s|/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/docbook.xsl|/usr/share/xml/docbook/xsl-stylesheets-"$(pacman -Q docbook-xsl | \
- awk '{ print $2 }' | awk -F"-" '{ print $1 }')"/xhtml/docbook.xsl|" \
- doc/gnofract4d-manual/C/gnofract4d.xsl
-}
+#prepare() {
+# cd $pkgname-$pkgver
+# # Patch for createdocs.py
+# sed -i "s|/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/xhtml/docbook.xsl|/usr/share/xml/docbook/xsl-stylesheets-"$(pacman -Q docbook-xsl | \
+# awk '{ print $2 }' | awk -F"-" '{ print $1 }')"/xhtml/docbook.xsl|" \
+# doc/gnofract4d-manual/C/gnofract4d.xsl
+#}
build() {
cd $pkgname-$pkgver
@@ -30,15 +33,17 @@ build() {
./createdocs.py
}
-# Note: the tests need to be run in a graphical environment
-#check() {
-# cd $pkgname-$pkgver
-# ./test.py
-#}
+check() {
+ cd $pkgname-$pkgver
+ ./test.py
+}
package() {
cd $pkgname-$pkgver
- install -Dm644 doc/gnofract4d.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
+
+ install -dm755 "$pkgdir/usr/share/man/man1"
+ gzip doc/gnofract4d.1 > "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
+
./setup.py install --root="$pkgdir" --optimize=1
}