summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThanosApostolou2017-05-02 12:41:47 +0300
committerThanosApostolou2017-05-02 12:41:47 +0300
commitd84e6c21882d20b93fc004cdf8ae1b16a998a3c0 (patch)
treeee00cb69e600737bc54dd2eba205b5c5c621b98b /PKGBUILD
parent51e976eaac5c2feb8e26efe9ba3e38009156c370 (diff)
downloadaur-d84e6c21882d20b93fc004cdf8ae1b16a998a3c0.tar.gz
improve pkgbuild, add /usr/share files
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ab4b3088747..8e3b98c7e6b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=xgraph-bin
pkgver=4.30
-pkgrel=1
+pkgrel=2
pkgdesc="XGRAPH is a general purpose x-y data plotter with interactive buttons for panning, zooming, printing, and selecting display options."
arch=('i686' 'x86_64')
url="http://www.xgraph.org/"
@@ -11,18 +11,23 @@ license=('custom')
depends=('libx11')
optdepends=('netpbm')
conflicts=('xgraph')
-source=()
source_i686=("http://www.xgraph.org/linux/xgraph_4.30_linux32.tar.gz")
source_x86_64=("http://www.xgraph.org/linux/xgraph_4.30_linux64.tar.gz")
+sha256sums_i686=('3f40da078c83f2ee8928211864f6aad000c833c63ffacc15b933d557695a084f')
+sha256sums_x86_64=('4c7dd6468fb310899d4adc7b9f4dda4c329ac6f9a3bc7051fde307fa8878567b')
package() {
- cd "$pkgdir"
- mkdir -p "$pkgdir/usr/bin/"
if test "$CARCH" == x86_64; then
- install -m 755 "$srcdir"/XGraph4.30_linux64/bin/xgraph "$pkgdir/usr/bin/"
+ _folder="XGraph4.30_linux64"
elif test "$CARCH" == i686; then
- install -m 755 "$srcdir"/XGraph4.30_linux32/bin/xgraph "$pkgdir/usr/bin/"
+ _folder="XGraph4.30_linux64"
fi
+ cd $srcdir/${_folder}
+ install -Dm755 ./bin/xgraph "$pkgdir/usr/bin/xgraph"
+ install -Dm644 Readme.txt "$pkgdir/usr/share/xgraph/Readme.txt"
+ install -Dm644 testxy.dat "$pkgdir/usr/share/xgraph/testxy.dat"
+ install -Dm644 ./data/oofficedata.scz "$pkgdir/usr/share/xgraph/data/oofficedata.scz"
+ install -Dm644 ./data/pptxdata.scz "$pkgdir/usr/share/xgraph/data/pptxdata.scz"
+ install -Dm644 ./data/sxidata.scz "$pkgdir/usr/share/xgraph/data/sxidata.scz"
+ install -Dm644 ./data/pptx/thumbnail.jpeg "$pkgdir/usr/share/xgraph/data/pptx/thumbnail.jpeg"
}
-md5sums_i686=('14e0f03d18451ce2e6c2d5cdb25227af')
-md5sums_x86_64=('976827671b1c0ebbdb2092d1b1e71aac')