aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-02-13 08:51:32 +0100
committerMattias Andrée <maandree@kth.se>2017-02-13 08:51:32 +0100
commit8e75ffef56c581f90dc911ad166dfc5408776374 (patch)
tree05911719a111e6c797ffd51acb9f5a53509979b3
parentAdd libkeccak (diff)
downloadaur-packages-8e75ffef56c581f90dc911ad166dfc5408776374.tar.gz
aur-packages-8e75ffef56c581f90dc911ad166dfc5408776374.tar.bz2
aur-packages-8e75ffef56c581f90dc911ad166dfc5408776374.tar.xz
Add and update general-preprocessor
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--gpp/PKGBUILD31
-rw-r--r--gpp/general-preprocessor.install20
2 files changed, 51 insertions, 0 deletions
diff --git a/gpp/PKGBUILD b/gpp/PKGBUILD
new file mode 100644
index 0000000..3c40e76
--- /dev/null
+++ b/gpp/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=general-preprocessor
+pkgver=1.6
+pkgrel=1
+pkgdesc="Bash-based preprocessor for anything"
+url="https://github.com/maandree/gpp"
+arch=(any)
+license=(GPL3)
+depends=(python bash)
+makedepends=(make coreutils python texinfo auto-auto-complete)
+install=general-preprocessor.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=(46aa12e2ac51f235c801d0751686e6699efd51fa063078b8e13a0d63cf277dde)
+
+_prefix=/usr
+_command=gpp ## change this if you have a package conflicting package
+
+
+build() {
+ cd "${srcdir}/gpp-${pkgver}"
+ make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" PY=python3
+}
+
+package() {
+ cd "${srcdir}/gpp-${pkgver}"
+ make PREFIX="${_prefix}" PKGNAME="${pkgname}" COMMAND="${_command}" DESTDIR="${pkgdir}" PY=python3 install
+ _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}"
+ ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE"
+}
+
diff --git a/gpp/general-preprocessor.install b/gpp/general-preprocessor.install
new file mode 100644
index 0000000..3f68be9
--- /dev/null
+++ b/gpp/general-preprocessor.install
@@ -0,0 +1,20 @@
+_file="general-preprocessor"
+
+infodir="usr/share/info"
+file="${_file}.info"
+
+
+post_install() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x "usr/bin/install-info" ]] || return 0
+ install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null
+}
+