1 2 3 4 5 6 7 8 9
#!/bin/sh set -e mkdir $1 cp template $1/PKGBUILD sed -i "s/NAME/$1/g" $1/PKGBUILD sed -i "s/VERSION/$2/g" $1/PKGBUILD nano $1/PKGBUILD chown -R builder:builder $1 ./mpkg.sh $1