]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - distro/archlinux/this/Makefile
distro/archlinux/this: generate the .MTREE file
[xonotic/gmqcc.git] / distro / archlinux / this / Makefile
index fa863d100aa77a62c2664189637bcbad881d1d11..22fb6c3e93e945e76c5b37bece58408536879e06 100644 (file)
@@ -40,7 +40,11 @@ base:
        @echo "makepkgopt = zipman" >> $(PKGINFO)
        @echo "makepkgopt = purge" >> $(PKGINFO)
        @echo "makepkgopt = !upx" >> $(PKGINFO)
-       @tar -cJvf $(PKG) -C $(PKGDIR)/ .PKGINFO usr/
+       @tar -C $(PKGDIR) -czf $(PKGDIR)/.MTREE \
+           --format=mtree \
+           --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' \
+           .PKGINFO usr/
+       @tar -cJvf $(PKG) -C $(PKGDIR)/ .PKGINFO .MTREE usr/
        @rm -rf $(PKGDIR)
 
 clean: