github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/builders/msi/fakepkg (about) 1 #!/bin/bash 2 3 # See https://bbs.archlinux.org/viewtopic.php?id=66156 4 5 set -e 6 7 echo -e "pkgname = ${1}\npkgver = 999-1\npkgdesc = fakepkg ${1} install\nurl = http://example.com\nbuilddate = 1234798527\npackager = ${USER}\nsize = 0\narch = $(uname -m)\nlicense = unknown" >.PKGINFO 8 for i in "${@:2}"; do 9 echo "provides = $i" >>.PKGINFO 10 done 11 if [ -n "${*:2}" ]; then 12 sed -i "s/\(pkgdesc.*install\)/& with ${*:2} provides/" .PKGINFO 13 fi 14 tar -czf "${1}-999-1-$(uname -m).pkg.tar.gz" .PKGINFO