mirror of
https://github.com/pygos/build.git
synced 2024-05-19 03:56:14 +02:00
David Oberhollenzer
5dfc8be3a1
- tzdata Since the source code is copied over anyway, there is no need to patch it up in a previous step. We can do that in the build function instead. - shadow The hooks was used to remove "groups" from the installed binaries. This is no longer needed. Instead, simply don't package it. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
34 lines
959 B
Plaintext
34 lines
959 B
Plaintext
VERSION="2019c"
|
|
SRCDIR="tzdb-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
URL="https://infraroot.at/pygos"
|
|
SHA256SUM="bb2373338140c3de7251e548526f1f70cb742739a962aad3f10238343a2c674c"
|
|
DEPENDS="toolchain"
|
|
SUBPKG="tzdata tzdata-dev"
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
sed -i 's/sbin/bin/g' Makefile
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make USRDIR="" DESTDIR="$PKGDEPLOYDIR" install
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
|
|
sed -i 's@/usr@@g' "$PKGDEPLOYDIR/bin/tzselect"
|
|
|
|
pkg_scan_dir "share/zoneinfo" >> "$PKGDEPLOYDIR/tzdata.files"
|
|
pkg_scan_dir "share/zoneinfo-leaps" >> "$PKGDEPLOYDIR/tzdata.files"
|
|
}
|
|
|
|
check_update() {
|
|
local version=$(echo $VERSION | sed 's/\([[:lower:]]\)/.\1/g')
|
|
local url="https://data.iana.org/time-zones/releases"
|
|
|
|
curl --silent -L "$url" | grep -o "tzdb-[0-9a-z]*\.tar\.lz" | \
|
|
sed 's/tzdb-//g' | sed 's/.tar.lz//g' | sort -u | \
|
|
sed 's/\([[:lower:]]\)/.\1/g' | \
|
|
verson_find_greatest "$version"
|
|
}
|