1 2 3 4 5 6 7 8 9
#!/bin/bash set -e pkg=$1 genpkg $pkg mkdir -p ~/arch/community/$pkg/{trunk,repos} cp ~/pkg/dest/$pkg/PKGBUILD ~/arch/community/$pkg/trunk/