mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +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>
37 lines
1.1 KiB
Text
Executable file
37 lines
1.1 KiB
Text
Executable file
VERSION="2.35.1"
|
|
SRCDIR="util-linux-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://www.kernel.org/pub/linux/utils/util-linux/v2.35"
|
|
SHA256SUM="d9de3edd287366cd908e77677514b9387b22bc7b88f45b83e1922c3597f1d7f9"
|
|
DEPENDS="bash-dev ncurses-dev zlib-dev toolchain"
|
|
SUBPKG="libblkid libblkid-dev libfdisk libfdisk-dev libmount libmount-dev libsmartcols libsmartcols-dev libuuid libuuid-dev util-linux"
|
|
|
|
build() {
|
|
ADJTIME_PATH=/var/lib/hwclock/adjtime \
|
|
run_configure "$1" --disable-pylibmount --without-python \
|
|
--without-systemd --without-systemdsystemunitdir \
|
|
--disable-makeinstall-chown \
|
|
--disable-makeinstall-setuid \
|
|
--enable-agetty
|
|
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
mkdir -p "$PKGDEPLOYDIR/var/lib/hwclock"
|
|
|
|
unfuck_libtool
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
|
|
if [ -e "$PKGDEPLOYDIR/sbin" ]; then
|
|
mv ${PKGDEPLOYDIR}/sbin/* "$PKGDEPLOYDIR/bin"
|
|
fi
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
}
|
|
|
|
check_update() {
|
|
curl --silent -L "https://www.kernel.org/pub/linux/utils/util-linux" | \
|
|
grep -o "v[0-9.]*/" | grep -o "[0-9.]*" | \
|
|
verson_find_greatest "$VERSION"
|
|
}
|