Exclude .hg directory from src package

This commit is contained in:
DasSkelett 2022-02-01 15:13:09 +01:00
parent 3757959950
commit b37728f1be
No known key found for this signature in database
GPG Key ID: CD4711E34050A172
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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"