aboutsummaryrefslogtreecommitdiffstats
path: root/main/libtool/APKBUILD
blob: d91cfe41dc59b85c43e9089456631e411782d7eb (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libtool
pkgver=2.4.2
pkgrel=0
pkgdesc="A generic library support script"
arch="all"
license='GPL'
url="http://www.gnu.org/software/libtool"
source="ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.gz"
depends="bash libltdl"
subpackages="libltdl $pkgname-doc"
options="libtool"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install
}

libltdl() {
	pkgdesc="Runtime libraries for GNU Libtool Dynamic Module Loade"
	depends=
	mkdir -p "$subpkgdir/usr/lib"
	mv "$pkgdir/usr/lib/libltdl.so"* "$subpkgdir/usr/lib/"
}

md5sums="d2f3b7d4627e69e13514a40e72a24d50  libtool-2.4.2.tar.gz"