summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDasSkelett2022-02-01 15:13:09 +0100
committerDasSkelett2022-02-01 15:13:09 +0100
commitb37728f1befed3d9192a43f212c17707615b1fd0 (patch)
treee861fe41dc98442bcdcf565b03006860b339a88c
parent37579599509529025ad3820e620cdbdea0621b6a (diff)
downloadaur-b37728f1befed3d9192a43f212c17707615b1fd0.tar.gz
Exclude .hg directory from src package
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 4268b1e73d63..0da1639f17f9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = nginx-quic
pkgdesc = Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch
pkgver = 1.21.6
- pkgrel = 1
+ pkgrel = 2
url = https://nginx.org
install = nginx.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index aeaf1aea6388..69fcf0abf917 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ _pkgbase=nginx
pkgbase=nginx-quic
pkgname=(nginx-quic nginx-quic-src)
pkgver=1.21.6
-pkgrel=1
+pkgrel=2
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, HTTP/3 QUIC branch'
arch=('i686' 'x86_64')
url='https://nginx.org'
@@ -171,6 +171,8 @@ package_nginx-quic-src() {
install -d "$pkgdir/usr/src"
test -d "$pkgdir/usr/src/nginx" && rm -r "$pkgdir/usr/src/nginx"
cp -r ${srcdir}/${pkgname} "$pkgdir/usr/src/nginx"
+ # Delete the .hg directory, it is huge and not needed
+ rm -r ${pkgdir}/usr/src/nginx/{.hg,.hgtags}
# Link the 'configure' script to its location in release tarballs,
# as this is where modules expect it
ln -s /usr/src/nginx/auto/configure "$pkgdir/usr/src/nginx"