Exclude .hg directory from src package
This commit is contained in:
parent
3757959950
commit
b37728f1be
2 changed files with 4 additions and 2 deletions
2
.SRCINFO
2
.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
|
||||
|
|
4
PKGBUILD
4
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"
|
||||
|
|
Loading…
Reference in a new issue