aboutsummaryrefslogtreecommitdiffstats
path: root/dist/archlinux/stable
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist/archlinux/stable/PKGBUILD30
-rw-r--r--dist/archlinux/stable/gpp.install20
2 files changed, 50 insertions, 0 deletions
diff --git a/dist/archlinux/stable/PKGBUILD b/dist/archlinux/stable/PKGBUILD
new file mode 100644
index 0000000..f997f85
--- /dev/null
+++ b/dist/archlinux/stable/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+
+pkgname=gpp
+pkgver=1
+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 gzip)
+install=gpp.install
+source=("${url}/archive/${pkgver}.tar.gz")
+sha256sums=(1f60c616624e4cbef9140f19b758c7132f509e50dc659ef133952f1e46ddab25)
+
+_prefix=/usr
+
+
+build() {
+ cd "${srcdir}/gpp-${pkgver}"
+ make PREFIX="${_prefix}" PKGNAME="${pkgname}" DESTDIR="${pkgdir}"
+}
+
+package() {
+ cd "${srcdir}/gpp-${pkgver}"
+ make PREFIX="${_prefix}" PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install
+ _dir="${pkgdir}${_prefix}/share/licenses/${pkgname}"
+ ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE"
+}
+
diff --git a/dist/archlinux/stable/gpp.install b/dist/archlinux/stable/gpp.install
new file mode 100644
index 0000000..5204b7e
--- /dev/null
+++ b/dist/archlinux/stable/gpp.install
@@ -0,0 +1,20 @@
+_file="gpp"
+
+infodir="usr/share/info"
+file="${_file}.info.gz"
+
+
+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
+}
+