summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dbf8ab340cc8b257647e4961c62c82f666c96f97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

# NOTE: requires rebuilt with each new gcc version

pkgname=libtool-git
pkgver=2.4.6+44.gb9b44533
pkgrel=1
_gccver=$(pacman -Q gcc | cut -d' ' -f2 | cut -d- -f1)
pkgdesc="A generic library support script (git version)"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/libtool"
license=('GPL')
groups=('base-devel')
depends=('sh' 'tar' 'glibc')
makedepends=("gcc=$_gccver")
provides=("libtool=$pkgver" "libltdl=$pkgver" "libtool-multilib=$pkgver")
conflicts=('libtool' 'libltdl' 'libtool-multilib')
replaces=('libtool' 'libltdl' 'libtool-multilib')
source=(git://git.savannah.gnu.org/libtool.git)
md5sums=('SKIP')

pkgver() {
  cd ${srcdir}/libtool
  git describe --long --abbrev=8 | sed 's/^v//; s/-/+/; s/-/\./'
}

build() {
  cd ${srcdir}/libtool
  ./bootstrap
  ./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
  make
}

check() {
  cd ${srcdir}/libtool
  make check
}

package() {
  cd ${srcdir}/libtool
  make DESTDIR=${pkgdir} install
}