1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-17 11:06:13 +02:00

Add diffutils package

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
David Oberhollenzer 2018-01-15 01:13:59 +01:00
parent 8b7511ff55
commit 10f53cd3dd
3 changed files with 30 additions and 0 deletions

View file

@ -9,3 +9,4 @@ xz
gzip
bzip2
tar
diffutils

View file

@ -12,3 +12,4 @@ xz
gzip
bzip2
tar
diffutils

28
pkg/diffutils/build Executable file
View file

@ -0,0 +1,28 @@
VERSION="3.6"
SRCDIR="diffutils-${VERSION}"
TARBALL="${SRCDIR}.tar.xz"
URL="https://ftp.gnu.org/gnu/diffutils/"
SHA256SUM="d621e8bdd4b573918c8145f7ae61817d1be9deb4c8d2328a65cea8e11d783bd6"
prepare() {
return
}
build() {
local SOURCE="$1"
local BUILD="$2"
$SOURCE/configure --prefix="" --host="$TARGET"
make -j $NUMJOBS
}
deploy() {
local SOURCE="$1"
local BUILD="$2"
local DEPLOY="$3"
make DESTDIR="$DEPLOY" install-strip
rm -r "$DEPLOY/share"
}