userspace
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* libtool — the portable shared-library builder (libtoolize + ltmain).
|
||||
*
|
||||
* Shell-based; libtoolize may consult autoconf/automake at runtime, so
|
||||
* they are declared as deps. The release tarball ships its own
|
||||
* configure and the generated libltdl.
|
||||
*/
|
||||
package "libtool" {
|
||||
const version = "2.5.4"
|
||||
const source = "https://ftp.gnu.org/gnu/libtool/libtool-${version}.tar.gz"
|
||||
sha256 = "da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf"
|
||||
license = "GPL-2.0-or-later"
|
||||
|
||||
provides = ["libtool", "libtoolize"]
|
||||
|
||||
depends = [
|
||||
{ name = "autoconf" },
|
||||
{ name = "automake" },
|
||||
{ name = "make" },
|
||||
]
|
||||
|
||||
prepare {
|
||||
curl -L -o libtool-${version}.tar.gz ${source}
|
||||
echo "da8ebb2ce4dcf46b90098daf962cffa68f4b4f62ea60f798d0ef12929ede6adf libtool-${version}.tar.gz" | sha256sum -c -
|
||||
tar xf libtool-${version}.tar.gz --strip-components=1
|
||||
ROOT=$KAPPA_ROOT; [ -z $ROOT ] && ROOT=/usr/local/kappa; if [ -d $ROOT/temp/autoconf/destdir/usr/bin ]; then echo $ROOT/temp/autoconf/destdir/usr/bin; else echo $ROOT/bin/$(grep '^autoconf ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > ac.path; if [ -d $ROOT/temp/automake/destdir/usr/bin ]; then echo $ROOT/temp/automake/destdir/usr/bin; else echo $ROOT/bin/$(grep '^automake ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > am.path
|
||||
}
|
||||
|
||||
build {
|
||||
PATH=$(cat ac.path):$(cat am.path):$PATH ./configure --prefix=${prefix}
|
||||
PATH=$(cat ac.path):$(cat am.path):$PATH make -j${jobs}
|
||||
}
|
||||
|
||||
install {
|
||||
PATH=$(cat ac.path):$(cat am.path):$PATH make DESTDIR=${destdir} install
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user