diff options
Diffstat (limited to 'scripts/patch/build.sh')
-rw-r--r-- | scripts/patch/build.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripts/patch/build.sh b/scripts/patch/build.sh new file mode 100644 index 0000000..8afc278 --- /dev/null +++ b/scripts/patch/build.sh @@ -0,0 +1,24 @@ +#!/bin/bash +name=patch +version=2.7.6 +revision=0 +sources=( + "https://ftp.gnu.org/gnu/${name}/${name}-${version}.tar.gz" +) +depends=() + +function prepare() { + tar xf ${name}-${version}.tar.gz + cd ${name}-${version} +} + +function build() { + ./configure --prefix="${prefix}" + make -j${maxjobs} +} + +function package() { + make install DESTDIR="${destdir}" +} + + |