summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorshmilee2017-04-07 09:47:11 +0800
committershmilee2017-04-07 10:50:44 +0800
commit9451a5c2e75d99c00991e948524bc41d851cbe67 (patch)
tree2dc22e697fca223cf01e2e660554be396fd5fd15
parentfcab29109597eb03edc08851691bed87fc8766f8 (diff)
downloadaur-9451a5c2e75d99c00991e948524bc41d851cbe67.tar.gz
update pkgdesc from homepage; add quotes for $srcdir, $pkgdir that may contain spaces
-rw-r--r--PKGBUILD27
1 files changed, 15 insertions, 12 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 34609156d68..ce9ae0b2c85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,10 @@
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: mcmillan <awmcmillan at gmail dot com>
+_pkgbase='engauge-digitizer'
+
pkgname=('engauge' 'engauge-samples')
+pkgbase='engauge'
pkgver=10.0
pkgrel=1
url="http://markummitchell.github.io/engauge-digitizer/"
@@ -10,32 +13,32 @@ license=('GPL')
optdepends=('libpng12: For reading png image files'
'libjpeg-turbo: For reading jpeg image files'
'openjpeg: For reading jpeg2000 image files')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/markummitchell/$pkgname-digitizer/archive/v$pkgver.tar.gz" "$pkgname.desktop")
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/markummitchell/$_pkgbase/archive/v$pkgver.tar.gz" "$pkgbase.desktop")
md5sums=('24ca9841ccefff0645c157e2fa72daa9'
'53def24f20c3d0178d3cf1b8c574fe15')
install=engauge.install
build() {
- cd $srcdir/${pkgname}-digitizer-$pkgver
+ cd "$srcdir/${_pkgbase}-$pkgver"
qmake-qt5 engauge.pro
make
}
package_engauge() {
- pkgdesc="A Digitizer for curves and scanned plots"
+ pkgdesc="Extracts data points from images of graphs"
depends=('qt5-tools' 'fftw' 'log4cpp')
- cd $srcdir/${pkgname}-digitizer-$pkgver
- install -Dm755 bin/$pkgname $pkgdir/usr/bin/$pkgname
+ cd "$srcdir/${_pkgbase}-$pkgver"
+ install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 help/animation.png \
- $pkgdir/usr/share/icons/$pkgname.png
- install -Dm644 $srcdir/$pkgname.desktop \
- $pkgdir/usr/share/applications/$pkgname.desktop
+ "$pkgdir/usr/share/icons/$pkgname.png"
+ install -Dm644 $srcdir/$pkgbase.desktop \
+ "$pkgdir/usr/share/applications/$pkgbase.desktop"
}
package_engauge-samples() {
- pkgdesc="samples for engauge copied into the doc subdirectory"
+ pkgdesc="sample image files for engauge copied into the doc subdirectory"
arch=('any')
- cd $srcdir/${pkgbase}-digitizer-$pkgver
- install -d $pkgdir/usr/share/doc/$pkgbase
- cp -r samples $pkgdir/usr/share/doc/$pkgbase
+ cd "$srcdir/${_pkgbase}-$pkgver"
+ install -d "$pkgdir/usr/share/doc/$pkgbase"
+ cp -r samples "$pkgdir/usr/share/doc/$pkgbase"
}