mirror of
https://github.com/pygos/build.git
synced 2024-11-23 03:29:46 +01:00
7204b9dd75
Automagically strip all executables (recursively for subdirectories in lib and bin) inside the mk.sh build loop. This removes the necessity in the build scripts to strip the files. This also allows us to remove the error prone install-strip target from the build scripts. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
36 lines
No EOL
764 B
Text
Executable file
36 lines
No EOL
764 B
Text
Executable file
VERSION="3.2.5"
|
|
SRCDIR="eudev-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="https://dev.gentoo.org/~blueness/eudev"
|
|
SHA256SUM="49c2d04105cad2526302627e040fa24b1916a9a3e059539bc8bb919b973890af"
|
|
DEPENDS="util-linux kmod xz zlib"
|
|
|
|
prepare() {
|
|
return
|
|
}
|
|
|
|
build() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
$SOURCE/configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
|
--disable-split-usr --disable-selinux \
|
|
--disable-manpages --disable-mtd_probe \
|
|
--disable-static
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
local SOURCE="$1"
|
|
local DEPLOY="$2"
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
rmdir "$DEPLOY/share"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "$URL" | grep -o "eudev-[0-9.]*tar.gz" | \
|
|
sed 's/eudev-//g' | sed 's/.tar.gz//g' | \
|
|
verson_find_greatest "$VERSION"
|
|
} |