diff options
author | DasSkelett | 2022-02-01 15:13:09 +0100 |
---|---|---|
committer | DasSkelett | 2022-02-01 15:13:09 +0100 |
commit | b37728f1befed3d9192a43f212c17707615b1fd0 (patch) | |
tree | e861fe41dc98442bcdcf565b03006860b339a88c | |
parent | 37579599509529025ad3820e620cdbdea0621b6a (diff) | |
download | aur-b37728f1befed3d9192a43f212c17707615b1fd0.tar.gz |
Exclude .hg directory from src package
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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 @@ -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" |