# get the varaibles from PKGBUILD source ./PKGBUILD # assets to pack in the tar ball ASSETS=( "source/" "modules/" "assets/" "frontend/build/" "shadowrun-server.service" "CMakeLists.txt" "shadowrun-server.install" ) # create the tar ball tar czf ${pkgname}-${pkgver}.tar.gz "${ASSETS[@]}" # create the package makepkg -f # create the release directory and store all files there RELEASE_DIR="release-${pkgver}/" mkdir -p ${RELEASE_DIR} mv ${pkgname}-${pkgver}.tar.gz ${RELEASE_DIR} mv ${pkgname}-${pkgver}-1-x86_64.pkg.tar.zst ${RELEASE_DIR} mv ${pkgname}-debug-${pkgver}-1-x86_64.pkg.tar.zst ${RELEASE_DIR} mv src/ ${RELEASE_DIR} #scp ${RELEASE_DIR}${pkgname}-${pkgver}-1-x86_64.pkg.tar.zst lukas@192.168.1.101:/home/lukas/Drive/archrepo/x86_64/