userspace
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* automake — generates Makefile.in from Makefile.am.
|
||||
*
|
||||
* Perl-based; aclocal/automake shell out to autoconf/autom4te at
|
||||
* runtime, so perl + autoconf + m4 are all required. The release
|
||||
* tarball ships its own configure.
|
||||
*/
|
||||
package "automake" {
|
||||
const version = "1.18"
|
||||
const source = "https://ftp.gnu.org/gnu/automake/automake-${version}.tar.gz"
|
||||
sha256 = "af6043a5d4b3beef0c48161f4a6936259321cd101a34c1ab0768328515626c8a"
|
||||
license = "GPL-2.0-or-later"
|
||||
|
||||
provides = ["automake", "aclocal"]
|
||||
|
||||
depends = [
|
||||
{ name = "perl" },
|
||||
{ name = "autoconf" },
|
||||
{ name = "m4" },
|
||||
{ name = "make" },
|
||||
]
|
||||
|
||||
prepare {
|
||||
curl -L -o automake-${version}.tar.gz ${source}
|
||||
echo "af6043a5d4b3beef0c48161f4a6936259321cd101a34c1ab0768328515626c8a automake-${version}.tar.gz" | sha256sum -c -
|
||||
tar xf automake-${version}.tar.gz --strip-components=1
|
||||
ROOT=$KAPPA_ROOT; [ -z $ROOT ] && ROOT=/usr/local/kappa; if [ -d $ROOT/temp/perl/destdir/usr/bin ]; then echo $ROOT/temp/perl/destdir/usr/bin; else echo $ROOT/bin/$(grep '^perl ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > perl.path; 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/m4/destdir/usr/bin ]; then echo $ROOT/temp/m4/destdir/usr/bin; else echo $ROOT/bin/$(grep '^m4 ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr/bin; fi > m4.path
|
||||
}
|
||||
|
||||
build {
|
||||
PATH=$(cat perl.path):$(cat ac.path):$(cat m4.path):$PATH ./configure --prefix=${prefix}
|
||||
PATH=$(cat perl.path):$(cat ac.path):$(cat m4.path):$PATH make -j${jobs}
|
||||
}
|
||||
|
||||
install {
|
||||
PATH=$(cat perl.path):$(cat ac.path):$(cat m4.path):$PATH make DESTDIR=${destdir} install
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user