fix packaging issue

This commit is contained in:
Page Asgardius 2022-04-28 05:53:52 -07:00
parent a99e901e13
commit 3c1e47a6ec

View file

@ -7,7 +7,7 @@ arch=('x86_64' 'aarch64')
url="https://patrice.asgardius.company/gitea/asgardius/r3" url="https://patrice.asgardius.company/gitea/asgardius/r3"
license=('GPL') license=('GPL')
depends=('python-pygame') depends=('python-pygame')
source=("$pkgname-$pkgver::git+https://patrice.asgardius.company/gitea/asgardius/r3.git#tag=1.1.0" source=("$pkgname-$pkgver::git+https://patrice.asgardius.company/gitea/asgardius/r3.git#tag=$pkgver"
"local://r3.desktop" "local://r3.desktop"
"local://r3.png" "local://r3.png"
"local://r3.sh") "local://r3.sh")
@ -26,13 +26,13 @@ build() {
package() { package() {
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
sudo mkdir -p $pkgdir/opt/r3-game mkdir -p $pkgdir/opt/r3-game
sudo mkdir -p $pkgdir/usr/share/applications mkdir -p $pkgdir/usr/share/applications
sudo mkdir -p $pkgdir/usr/share/icons/hicolor/apps mkdir -p $pkgdir/usr/share/icons/hicolor/apps
sudo mkdir -p $pkgdir/usr/bin mkdir -p $pkgdir/usr/bin
sudo cp -Rv * $pkgdir/opt/r3-game cp -Rv * $pkgdir/opt/r3-game
sudo cp -v ../r3.sh $pkgdir/usr/bin/r3-game cp -v ../r3.sh $pkgdir/usr/bin/r3-game
sudo chmod +x $pkgdir/usr/bin/r3-game chmod +x $pkgdir/usr/bin/r3-game
sudo cp -v ../r3.desktop $pkgdir/usr/share/applications/r3-game.desktop cp -v ../r3.desktop $pkgdir/usr/share/applications/r3-game.desktop
sudo cp -v ../r3.png $pkgdir/usr/share/icons/hicolor/apps/r3-game.png cp -v ../r3.png $pkgdir/usr/share/icons/hicolor/apps/r3-game.png
} }