Commit 9d616a13 authored by Natanael Copa's avatar Natanael Copa

abuild: add configurable apk cache

parent bdc61827
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
PACKAGE := abuild PACKAGE := abuild
VERSION := 1.14 VERSION := 1.14
prefix ?= /usr prefix ?= /usr
sysconfdir ?= /etc sysconfdir ?= /etc
datadir ?= $(prefix)/share/$(PACKAGE) datadir ?= $(prefix)/share/$(PACKAGE)
apkcache ?= /var/cache/abuild/apks
USR_BIN_FILES := abuild devbuild mkalpine buildrepo USR_BIN_FILES := abuild devbuild mkalpine buildrepo
SAMPLES := sample.APKBUILD sample.initd sample.confd \ SAMPLES := sample.APKBUILD sample.initd sample.confd \
...@@ -29,7 +30,8 @@ TAR := tar ...@@ -29,7 +30,8 @@ TAR := tar
SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \
-e 's:@prefix@:$(prefix):g' \ -e 's:@prefix@:$(prefix):g' \
-e 's:@sysconfdir@:$(sysconfdir):g' \ -e 's:@sysconfdir@:$(sysconfdir):g' \
-e 's:@datadir@:$(datadir):g' -e 's:@datadir@:$(datadir):g' \
-e 's:@apkcache@:$(apkcache):g'
.SUFFIXES: .sh.in .in .SUFFIXES: .sh.in .in
.sh.in.sh: .sh.in.sh:
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
abuild_ver=@VERSION@ abuild_ver=@VERSION@
sysconfdir=@sysconfdir@ sysconfdir=@sysconfdir@
abuildrepo=@apkcache@
startdir="$PWD" startdir="$PWD"
srcdir=${srcdir:-"$startdir/src"} srcdir=${srcdir:-"$startdir/src"}
...@@ -17,7 +18,6 @@ pkgbasedir=${pkgbasedir:-"$startdir/pkg"} ...@@ -17,7 +18,6 @@ pkgbasedir=${pkgbasedir:-"$startdir/pkg"}
pkgrel=0 pkgrel=0
repo=${startdir%/*} repo=${startdir%/*}
repo=${repo##*/} repo=${repo##*/}
abuildrepo=/var/cache/abuild/apks
# defaults # defaults
SRCDEST=${SRCDEST:-$startdir} SRCDEST=${SRCDEST:-$startdir}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment