summaryrefslogtreecommitdiff
path: root/staging/source-highlight
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-11-27 23:14:57 +0000
committerroot <root@rshg054.dnsready.net>2011-11-27 23:14:57 +0000
commit495674534c45d86d3ad9149cdba75ca0bbbe1a0e (patch)
treefedd73618682db59faeb8a7ce47ae753d9995845 /staging/source-highlight
parentd5d697136e6d703fa618b3fb08915eef50d4d4de (diff)
Sun Nov 27 23:14:57 UTC 2011
Diffstat (limited to 'staging/source-highlight')
-rw-r--r--staging/source-highlight/PKGBUILD32
-rw-r--r--staging/source-highlight/source-highlight.install18
2 files changed, 50 insertions, 0 deletions
diff --git a/staging/source-highlight/PKGBUILD b/staging/source-highlight/PKGBUILD
new file mode 100644
index 000000000..d43c52790
--- /dev/null
+++ b/staging/source-highlight/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 143597 2011-11-26 22:48:36Z giovanni $
+# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
+
+pkgname=source-highlight
+pkgver=3.1.5
+pkgrel=2
+pkgdesc="Convert source code to syntax highlighted document"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/src-highlite/"
+license=('GPL')
+depends=('gcc-libs' 'bash' 'boost-libs')
+makedepends=('ctags' 'boost')
+options=('!libtool')
+install=$pkgname.install
+source=("ftp://ftp.gnu.org/gnu/src-highlite/${pkgname}-${pkgver}.tar.gz")
+md5sums=('3117ee47c1c6b0668667e20d2aca3757')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --with-bash-completion=${pkgdir}/etc/bash_completion.d
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make prefix="${pkgdir}/usr" install
+}
diff --git a/staging/source-highlight/source-highlight.install b/staging/source-highlight/source-highlight.install
new file mode 100644
index 000000000..4fd1b3005
--- /dev/null
+++ b/staging/source-highlight/source-highlight.install
@@ -0,0 +1,18 @@
+info_dir=usr/share/info
+info_files=(source-highlight.info source-highlight-lib.info)
+
+post_install() {
+ for f in ${info_files[@]}; do
+ install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ for f in ${info_files[@]}; do
+ install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+ done
+}