aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-03-29 10:30:07 -0300
committerEuAndreh <eu@euandre.org>2023-03-29 10:30:07 -0300
commit2430360ea1e841be80d14e66d31688aeae153270 (patch)
treecd05007e08f86e7e8f3562af2266f1ad217d4507 /src/bin
parentsrc/bin/paku.in: Better name for Debian directories (diff)
downloadpackage-repository-2430360ea1e841be80d14e66d31688aeae153270.tar.gz
package-repository-2430360ea1e841be80d14e66d31688aeae153270.tar.xz
src/bin/paku.in: Move abuild(1) tmpdirs into .abuild/ to make more them ignorable
Diffstat (limited to 'src/bin')
-rwxr-xr-xsrc/bin/paku.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/paku.in b/src/bin/paku.in
index c823926..7f7c726 100755
--- a/src/bin/paku.in
+++ b/src/bin/paku.in
@@ -534,6 +534,8 @@ sub emit_alpine() {
install=''
subpackages='@subpackages'
source='$pkg->{url}'
+ pkgbasedir="\$startdir/.abuild/pkg"
+ srcdir="\$startdir/.abuild/src"
builddir="\$srcdir/$pkg->{name}-$pkg->{version}"
build() {
@@ -548,6 +550,10 @@ sub emit_alpine() {
make install DESTDIR="\$pkgdir" PREFIX=/usr
}
+ cleanup_srcdir() {
+ rm -rf "\$startdir/.abuild"
+ }
+
sha512sums='
$pkg->{sha512} $pkg->{fname}
'