aboutsummaryrefslogtreecommitdiff
path: root/scripts/grep/build.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-09-30 23:35:07 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-09-30 23:35:07 -0400
commit031bc1627fdc38d1c178707c86dd267224b94693 (patch)
tree9e44e7bfd24da233e0b950892f48932bdde37618 /scripts/grep/build.sh
downloadspm-031bc1627fdc38d1c178707c86dd267224b94693.tar.gz
Initial commit
Diffstat (limited to 'scripts/grep/build.sh')
-rw-r--r--scripts/grep/build.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/grep/build.sh b/scripts/grep/build.sh
new file mode 100644
index 0000000..7d396d9
--- /dev/null
+++ b/scripts/grep/build.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+name=grep
+version=3.3
+revision=0
+sources=(
+ "http://mirror.rit.edu/gnu/${name}/${name}-${version}.tar.xz"
+)
+depends=()
+
+
+function prepare() {
+ tar xf ${name}-${version}.tar.xz
+ cd ${name}-${version}
+}
+
+function build() {
+ ./configure --prefix=$prefix
+ make -j${maxjobs}
+}
+
+function package() {
+ make install DESTDIR="${destdir}"
+}