mirror of
https://github.com/pygos/build.git
synced 2024-11-17 00:47:10 +01:00
David Oberhollenzer
fa4eff263b
This commit adds an "emptypackage" template that implements defaults for all package functions and is included before every package. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
28 lines
740 B
Text
Executable file
28 lines
740 B
Text
Executable file
VERSION="2.34"
|
|
SRCDIR="binutils-$VERSION"
|
|
TARBALL="binutils-$VERSION.tar.xz"
|
|
URL="http://ftp.gnu.org/gnu/binutils"
|
|
SHA256SUM="f00b0e8803dc9bab1e2165bd568528135be734df3fabf8d0161828cd56028952"
|
|
DEPENDS="tc-pkgtool"
|
|
|
|
build() {
|
|
local extra="$BINUTILS_EXTRACFG"
|
|
|
|
$1/configure --prefix="$TCDIR" --target="$TARGET" --disable-nls \
|
|
--with-sysroot="$SYSROOT" --disable-multilib \
|
|
--enable-shared --enable-plugins --enable-relro \
|
|
--with-pic --enable-deterministic-archives \
|
|
--with-lib-path="$SYSROOT/lib" $extra
|
|
|
|
make configure-host
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make install
|
|
touch "$PKGDEPLOYDIR/$PKGNAME.desc" "$PKGDEPLOYDIR/$PKGNAME.files"
|
|
}
|
|
|
|
check_update() {
|
|
check_update_simple "$URL" "binutils" "tar.xz"
|
|
}
|