Permalink
Browse files

Improve libtool build script

  • Loading branch information...
mikroskeem committed Dec 16, 2018
1 parent 689f04a commit 594c56e7992441006b9a5e76f15c47f2e412bacd
Showing with 11 additions and 13 deletions.
  1. +11 −13 libtool/PKGBUILD
@@ -1,7 +1,7 @@
# Based on: https://git.alpinelinux.org/cgit/aports/tree/main/libtool/APKBUILD

pkgname=('libtool' 'libltdl')
pkgbase=libtool
pkgname=('libltdl' 'libtool')
pkgver=2.4.6
pkgrel=1
pkgdesc='A generic library support script'
@@ -38,26 +38,24 @@ check() {
#make TESTSUITEFLAGS="1-66 68 72-116 118-169" check
}

package_libtool() {
depends=('sh' "libltdl=${pkgver}-${pkgrel}")
groups=('base-devel')

package() {
cd "${pkgbase}-${pkgver}"

make DESTDIR="${pkgdir}" install

# Move libraries to srcdir temporarily
mkdir -p "${srcdir:?}"/libs
mv "${pkgdir}"/usr/lib/libltdl.so* "${srcdir:?}"/libs/
}

package_libltdl() {
pkgdesc="Runtime libraries for GNU Libtool Dynamic Module Loader"
depends=('libc')

cd "${pkgbase}-${pkgver}"
install -d -m 755 "${pkgdir}"/usr/lib
mv "${srcdir}"/libs/libltdl.so* "${pkgdir}"/usr/lib/
install -d -m 755 "${splitpkgdir}"/usr/lib
mv "${pkgdir}"/usr/lib/libltdl.so* "${splitpkgdir}"/usr/lib/
}

package_libtool() {
depends=('sh' "libltdl=${pkgver}-${pkgrel}")
groups=('base-devel')

rm -rf "${srcdir:?}/libs"
install -d -m 755 "${splitpkgdir}"/usr/lib
mv "${pkgdir}"/usr/{bin,lib,share} "${splitpkgdir}"/usr/
}

0 comments on commit 594c56e

Please sign in to comment.