From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- core/libtool/PKGBUILD | 31 +++++++++++++++++++++++++++++++ core/libtool/libtool.install | 22 ++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 core/libtool/PKGBUILD create mode 100644 core/libtool/libtool.install (limited to 'core/libtool') diff --git a/core/libtool/PKGBUILD b/core/libtool/PKGBUILD new file mode 100644 index 000000000..1ce394098 --- /dev/null +++ b/core/libtool/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 103285 2010-12-17 05:56:05Z allan $ +# Maintainer: Allan McRae +# Contributor: judd + +# NOTE: requires rebuilt with each new gcc version + +pkgname=libtool +pkgver=2.4 +pkgrel=2 +pkgdesc="A generic library support script" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/libtool" +license=('GPL') +depends=('sh' 'tar' 'texinfo') +groups=('base-devel') +options=('!libtool') +install=libtool.install +source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz) +md5sums=('4e6144439d95d7332dc50ace6dd24c55') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + ./configure --prefix=/usr + make + make check +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + make DESTDIR=${pkgdir} install +} diff --git a/core/libtool/libtool.install b/core/libtool/libtool.install new file mode 100644 index 000000000..424c8cb88 --- /dev/null +++ b/core/libtool/libtool.install @@ -0,0 +1,22 @@ +infodir=/usr/share/info +filelist=(libtool.info libtool.info-1 libtool.info-2) + +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 +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf