summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/librefetch/librefetch10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 07303ae..e3b9c65 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -87,7 +87,7 @@ main() {
else
srcbuild="$(modified_pkgbuild "$BUILDFILE")"
fi
- makepkg="$(modified_makepkg "$(which "${MAKEPKG:-makepkg}")")"
+ makepkg="$(modified_makepkg "$(which makepkg)")"
# Mode: checksums ######################################################
@@ -189,7 +189,6 @@ parse_options() {
makepkg_modify='
/create_package\(\) \{/,/^\}$/ {
/pkg_file=/d # allow us to set pkg_file
- /check_package/d # do not run check_package
s/"?\$\{comp_files\[@\]\}"?// # do not include .{PKGINFO,INSTALL,CHANGELOG}
s/bsdtar /&--format=ustar / # ustar, not pax
}
@@ -271,12 +270,7 @@ fi
prepare() { rm -rf "$pkgdir"; }
build() { mksource; }
check() { :; }
-package() {
- if [[ $(ls "$pkgdir" | wc -l) -eq 0 ]]; then
- # pkgdir is empty; provide good default behavior
- cp -a "${srcdir}"/*/ "$pkgdir/"
- fi
-}
+package() { cp -a "$srcdir"/*/ "$pkgdir/"; }
'
modified_pkgbuild() {