From 5dfc8be3a1852150f2c594136f5051e736ba4aca Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 21 Apr 2020 13:43:12 +0200 Subject: [PATCH] Cleanup: remove no longer needed prepare hooks - 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 --- pkg/shadow/build | 4 ---- pkg/tzdata/build | 5 +---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/shadow/build b/pkg/shadow/build index 5fbeb33..a51c4fd 100755 --- a/pkg/shadow/build +++ b/pkg/shadow/build @@ -5,10 +5,6 @@ URL="https://github.com/shadow-maint/shadow/releases/download/${VERSION}" SHA256SUM="a3ad4630bdc41372f02a647278a8c3514844295d36eefe68ece6c3a641c1ae62" DEPENDS="toolchain" -prepare() { - sed -i 's/groups$(EXEEXT) //' src/Makefile.in -} - build() { run_configure "$1" --disable-man --without-libpam --without-selinux \ --with-sha-crypt --with-group-name-max-length=32 diff --git a/pkg/tzdata/build b/pkg/tzdata/build index 228862c..2adc6ff 100644 --- a/pkg/tzdata/build +++ b/pkg/tzdata/build @@ -6,12 +6,9 @@ SHA256SUM="bb2373338140c3de7251e548526f1f70cb742739a962aad3f10238343a2c674c" DEPENDS="toolchain" SUBPKG="tzdata tzdata-dev" -prepare() { - sed -i 's/sbin/bin/g' Makefile -} - build() { cp -r ${1}/* ${PKGBUILDDIR} + sed -i 's/sbin/bin/g' Makefile make -j $NUMJOBS }