summaryrefslogtreecommitdiffstats
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-09-22 12:25:30 +0200
committerAllan McRae <allan@archlinux.org>2013-10-14 05:01:10 +0200
commit31a55df3d9750b2cdb21d436c4bf3ffbf24c4f4d (patch)
treeb08af369319dd8cb9f38dce4fb7c377b74ee7330 /scripts/makepkg.sh.in
parentc9ab8a7f6c4d70672e2681f0e57d3298a2bdab7b (diff)
downloadpacman-31a55df3d9750b2cdb21d436c4bf3ffbf24c4f4d.tar.gz
pacman-31a55df3d9750b2cdb21d436c4bf3ffbf24c4f4d.tar.xz
makepkg: add LIBRARY variable
This points makepkg to where is library is located. Can be overridden by value in the environment. Signed-off-by: Allan McRae <allan@archlinux.org> [Ashley: Rebased] Signed-off-by: Ashley Whetter <ashley@awhetter.co.uk>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 9e2675db..2b01c468 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -46,6 +46,8 @@ declare -r confdir='@sysconfdir@'
declare -r BUILDSCRIPT='@BUILDSCRIPT@'
declare -r startdir="$PWD"
+LIBRARY=${LIBRARY:-'@libmakepkgdir@'}
+
packaging_options=('strip' 'docs' 'libtool' 'staticlibs' 'emptydirs' 'zipman' \
'purge' 'upx' 'debug')
other_options=('ccache' 'distcc' 'buildflags' 'makeflags')