summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAidan Harris2018-02-09 23:45:50 +0000
committerAidan Harris2018-02-09 23:45:50 +0000
commit27953f8c990447c86b55edf5a99d19f8087e0aa1 (patch)
tree2b782ab6beaa596052764bdf440aff2373f48916
parent2e63871c71f191b83e0c5de5fc2d3ad272447735 (diff)
downloadaur-27953f8c990447c86b55edf5a99d19f8087e0aa1.tar.gz
Delete git history
-rw-r--r--PKGBUILD2
1 files changed, 2 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9b0ce4c5476..f43b37d91eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -49,6 +49,8 @@ package() {
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${_gitname}"
npm install --cache ../cache --user root -g --prefix "${pkgdir}/usr" ../*.tar.gz
+
+ [ -z "$HOMEBRIDGE_KEEP_GIT_HISTORY" ] && rm -rf "${pkgdir}/usr/lib/node_modules/${_gitname}/.git"
install -D -m644 "${srcdir}/${_gitname}-system.service" "$pkgdir/usr/lib/systemd/system/${_gitname}.service"
install -D -m644 "${srcdir}/${_gitname}-user.service" "$pkgdir/usr/lib/systemd/user/${_gitname}.service"