summaryrefslogtreecommitdiff
path: root/pcr/ploticus/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-14 02:08:46 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-10-14 02:08:46 -0300
commit776999f7876ddc85f4212202fc4ec3b4389dd784 (patch)
tree8c5533c7e1b6d14a7eb1818cbbf34b0dd9c50a6f /pcr/ploticus/PKGBUILD
parentf0d222892c55dfde6fc14cd2ee2578d035ce5866 (diff)
ploticus: add new package to [pcr]
Diffstat (limited to 'pcr/ploticus/PKGBUILD')
-rw-r--r--pcr/ploticus/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/pcr/ploticus/PKGBUILD b/pcr/ploticus/PKGBUILD
new file mode 100644
index 000000000..f63508246
--- /dev/null
+++ b/pcr/ploticus/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer (Arch): Chris Severance aur.severach aATt spamgourmet dott com
+# Contributor (Arch): Kaiting Chen <kaitocracy@gmail.com>
+# Contributor (Arch): Andreas Hauser <andy-aur@splashground.de>
+
+set -u
+pkgname='ploticus'
+pkgver='2.41'
+pkgrel='1'
+pkgdesc='produce plots and graphs in GIF, PNG, PostScript, SVG from CSV like data'
+arch=('i686' 'x86_64')
+url='http://ploticus.sourceforge.net/doc/welcome.html'
+license=('GPL')
+depends=('gd' 'libpng' 'libjpeg' 'freetype2' 'zlib' 'libx11')
+sha256sums=('ecccb6afcf0008d5b31da2e9e74c448564101eb7b9bbde758a3dca1f2dc8c580'
+ 'f0b1acc10a35b1d3c4268ee67c2520af36044991e289d538c1cb5b7bc406d4e4')
+source=("http://prdownloads.sourceforge.net/sourceforge/${pkgname}/pl${pkgver/./}src.tar.gz"
+ 'Makefile.patch')
+
+prepare() {
+ set -u
+ cd "${srcdir}/pl${pkgver/./}src/src"
+ patch -Np2 -i "${srcdir}/Makefile.patch"
+ set +u
+}
+
+build() {
+ set -u
+ cd "${srcdir}/pl${pkgver/./}src/src"
+ make -s -j "$(nproc)" CC='gcc -O'
+ set +u
+}
+
+package() {
+ set -u
+ cd "${srcdir}/pl${pkgver/./}src/src"
+ install -Dpm755 'pl' -t "${pkgdir}/usr/bin/"
+ install -Dpm644 '../man/man1/pl.1' -t "${pkgdir}/usr/share/man/man1/"
+ install -Dpm644 '../prefabs'/* -t "${pkgdir}/usr/share/ploticus/"
+ set +u
+}
+set +u