mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add diffutils package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
8b7511ff55
commit
10f53cd3dd
3 changed files with 30 additions and 0 deletions
|
@ -9,3 +9,4 @@ xz
|
||||||
gzip
|
gzip
|
||||||
bzip2
|
bzip2
|
||||||
tar
|
tar
|
||||||
|
diffutils
|
||||||
|
|
|
@ -12,3 +12,4 @@ xz
|
||||||
gzip
|
gzip
|
||||||
bzip2
|
bzip2
|
||||||
tar
|
tar
|
||||||
|
diffutils
|
||||||
|
|
28
pkg/diffutils/build
Executable file
28
pkg/diffutils/build
Executable 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"
|
||||||
|
}
|
Loading…
Reference in a new issue