summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée2015-06-12 14:07:14 +0200
committerMattias Andrée2015-06-12 14:07:14 +0200
commit07f9e77fb9250a90e7ab9945773beee103babb47 (patch)
treeeaf8458afcebe2242369818862c18f8729e4eb91
downloadaur-07f9e77fb9250a90e7ab9945773beee103babb47.tar.gz
Initial import, version 1.3
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
-rw-r--r--general-preprocessor.install20
3 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3623d0664b1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = general-preprocessor
+ pkgdesc = Bash based preprocessor for anything
+ pkgver = 1.3
+ pkgrel = 1
+ url = https://github.com/maandree/gpp
+ install = general-preprocessor.install
+ arch = any
+ license = GPL3
+ makedepends = make
+ makedepends = coreutils
+ makedepends = python
+ makedepends = texinfo
+ depends = python
+ depends = bash
+ source = https://github.com/maandree/gpp/archive/1.3.tar.gz
+ sha256sums = c49c0680be2e3238e5ccf01d39c444bd2bec481bfc759a1d467bc4c01ca5b5b0
+
+pkgname = general-preprocessor
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb5813fc1c4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=general-preprocessor
+pkgver=1.3
+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)
+install=general-preprocessor.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=(c49c0680be2e3238e5ccf01d39c444bd2bec481bfc759a1d467bc4c01ca5b5b0)
+
+_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/general-preprocessor.install b/general-preprocessor.install
new file mode 100644
index 00000000000..3f68be9bfd2
--- /dev/null
+++ b/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
+}
+