diff options
author | ptrv | 2015-06-14 11:01:37 +0200 |
---|---|---|
committer | ptrv | 2015-06-14 11:01:37 +0200 |
commit | 6b5e74d71ea0cea842c4b7c7716859645cf2b3fb (patch) | |
tree | 9aaeba8d6717abe933e722d0361a2c449ecb22ef | |
download | aur-6b5e74d71ea0cea842c4b7c7716859645cf2b3fb.tar.gz |
Initial global package import
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | global.install | 24 |
3 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..746572781dee --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = global + pkgdesc = A source code tag system + pkgver = 6.4 + pkgrel = 1 + url = http://www.gnu.org/software/global/ + install = global.install + arch = i686 + arch = x86_64 + license = GPL + depends = libltdl + depends = bash + depends = perl + optdepends = idutils + optdepends = ctags + optdepends = python2-pygments + options = !emptydirs + options = !libtool + source = http://tamacom.com/global/global-6.4.tar.gz + md5sums = 34987ce863661bfceddc1ac016d19195 + sha256sums = 315bf69bf2b4dbe661ff2800967e5f1171edfb83a0f17424612baa673aff248e + +pkgname = global + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..17cdedccf9e5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Peter Vasil <mail@petervasil.net> +# Contributor: Lucas De Marchi <lucas.de.marchi@gmail.com> +# Contributor: Matthias Meulien orontee@gmail.com + +pkgname=global +pkgver=6.4 +pkgrel=1 +pkgdesc="A source code tag system" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/global/" +license=('GPL') +depends=('libltdl' 'bash' 'perl') +optdepends=('idutils' 'ctags' 'python2-pygments') +options=(!emptydirs !libtool) +install=global.install +source=(http://tamacom.com/global/${pkgname}-${pkgver}.tar.gz) +md5sums=('34987ce863661bfceddc1ac016d19195') +sha256sums=('315bf69bf2b4dbe661ff2800967e5f1171edfb83a0f17424612baa673aff248e') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed -i 's/\.la/.so/g' gtags.conf.in +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + autoreconf -fi + PYTHON=/usr/bin/python2 ./configure --prefix=/usr --with-exuberant-ctags=/usr/bin/ctags + make +} + +check() { + cd "${srcdir}/${pkgname}-${pkgver}" + make -k check +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + + install -d "${pkgdir}/usr/share/emacs/site-lisp" + ln -s ../../gtags/gtags.el "${pkgdir}/usr/share/emacs/site-lisp/gtags.el" +} + diff --git a/global.install b/global.install new file mode 100644 index 000000000000..f4eda6f5bbc1 --- /dev/null +++ b/global.install @@ -0,0 +1,24 @@ +infodir=/usr/share/info +filelist=(global.info) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +# Local Variables: +# mode: sh +# End: |