summaryrefslogtreecommitdiff
path: root/repo/util/which.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/util/which.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/util/which.xibuild')
-rw-r--r--repo/util/which.xibuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/repo/util/which.xibuild b/repo/util/which.xibuild
index 5f682dc..8a70016 100644
--- a/repo/util/which.xibuild
+++ b/repo/util/which.xibuild
@@ -2,12 +2,17 @@
DEPS=(glibc bash)
-SOURCE=http://ftp.gnu.org/gnu/which/which-2.21.tar.gz
+PKG_VER=2.21
+
+SOURCE=http://ftp.gnu.org/gnu/which/which-$PKG_VER.tar.gz
DESC="A utility to show the full path of commands"
build () {
CC=gcc ./configure --prefix=/usr
make
+}
+
+package () {
make DESTDIR=$PKG_DEST install
}