mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
Get Unciv.desktop and Unciv.sh from release
Previously the `Unciv.desktop` and `Unciv.sh` files were fixed in this repository. They are now downloaded directly from the GitHub release so they are always up-to-date. Furthermore, changed the name of the icon to `unciv.png` instead of `Unciv.png`, hopefully making gnome desktops able to find it and link it to the correct desktop application.
This commit is contained in:
parent
594b7a5ee5
commit
2a07fa3525
4 changed files with 10 additions and 72 deletions
8
.SRCINFO
8
.SRCINFO
|
|
@ -1,7 +1,7 @@
|
|||
pkgbase = unciv-bin
|
||||
pkgdesc = Open-source remake of Civilization V
|
||||
pkgver = 4.1.18
|
||||
pkgrel = 0
|
||||
pkgrel = 1
|
||||
url = https://github.com/yairm210/Unciv
|
||||
arch = any
|
||||
license = MPL-2.0
|
||||
|
|
@ -13,11 +13,9 @@ pkgbase = unciv-bin
|
|||
noextract = Unciv-4.1.18.jar
|
||||
source = Unciv-4.1.18.jar::https://github.com/yairm210/Unciv/releases/download/4.1.18/Unciv.jar
|
||||
source = Unciv-4.1.18.png::https://raw.githubusercontent.com/yairm210/Unciv/4.1.18/extraImages/Unciv%20icon%20v4.png
|
||||
source = Unciv.sh
|
||||
source = Unciv.desktop
|
||||
source = Unciv-4.1.18.zip::https://github.com/yairm210/Unciv/releases/download/4.1.18/linuxFilesForJar.zip
|
||||
md5sums = 0ccfebe5bc664fe29580cf798d9bd858
|
||||
md5sums = 5aca7fc33f121fcf901fef14f784731a
|
||||
md5sums = b5c3190a1616e545df32536920e07c98
|
||||
md5sums = 42d5f7ea8ee48d2d643d070786f039ba
|
||||
md5sums = 7f15dcf71e93af89b08fe8984a6bd6ca
|
||||
|
||||
pkgname = unciv-bin
|
||||
|
|
|
|||
16
PKGBUILD
16
PKGBUILD
|
|
@ -4,7 +4,7 @@ pkgname=unciv-bin
|
|||
_pkgname=Unciv
|
||||
_pkgver=4.1.18
|
||||
pkgver=${_pkgver//-/_}
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Open-source remake of Civilization V"
|
||||
url="https://github.com/yairm210/Unciv"
|
||||
license=('MPL-2.0')
|
||||
|
|
@ -13,22 +13,20 @@ provides=('unciv')
|
|||
conflicts=('unciv')
|
||||
arch=('any')
|
||||
source=(
|
||||
"$_pkgname-$_pkgver.jar::https://github.com/yairm210/Unciv/releases/download/$_pkgver/Unciv.jar"
|
||||
"$_pkgname-$_pkgver.jar::https://github.com/yairm210/$_pkgname/releases/download/$_pkgver/Unciv.jar"
|
||||
"$_pkgname-$_pkgver.png::https://raw.githubusercontent.com/yairm210/$_pkgname/$_pkgver/extraImages/Unciv%20icon%20v4.png"
|
||||
"$_pkgname.sh"
|
||||
"$_pkgname.desktop"
|
||||
"$_pkgname-$_pkgver.zip::https://github.com/yairm210/$_pkgname/releases/download/$_pkgver/linuxFilesForJar.zip"
|
||||
)
|
||||
noextract=(
|
||||
"$_pkgname-$_pkgver.jar"
|
||||
)
|
||||
md5sums=('0ccfebe5bc664fe29580cf798d9bd858'
|
||||
'5aca7fc33f121fcf901fef14f784731a'
|
||||
'b5c3190a1616e545df32536920e07c98'
|
||||
'42d5f7ea8ee48d2d643d070786f039ba')
|
||||
'7f15dcf71e93af89b08fe8984a6bd6ca')
|
||||
|
||||
package() {
|
||||
install -Dm755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname"
|
||||
install -Dm644 $_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"
|
||||
install -Dm644 $_pkgname-$_pkgver.png "$pkgdir/usr/share/pixmaps/$_pkgname.png"
|
||||
install -Dm755 Unciv.sh "$pkgdir/usr/bin/$_pkgname"
|
||||
install -Dm644 unciv.desktop "$pkgdir/usr/share/applications/unciv.desktop"
|
||||
install -Dm644 $_pkgname-$_pkgver.png "$pkgdir/usr/share/pixmaps/unciv.png"
|
||||
install -Dm644 $_pkgname-$_pkgver.jar "$pkgdir/usr/share/$_pkgname/$_pkgname.jar"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Comment=Open-source Android/Desktop remake of Civ V
|
||||
Exec=Unciv
|
||||
GenericName=4X Game
|
||||
Icon=unciv
|
||||
Name=Unciv
|
||||
NoDisplay=false
|
||||
StartupNotify=true
|
||||
Terminal=0
|
||||
Type=Application
|
||||
Categories=Game
|
||||
46
Unciv.sh
46
Unciv.sh
|
|
@ -1,46 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
CONFIG_DIR="$HOME/.local/share/Unciv"
|
||||
|
||||
USAGE="Unciv [--help | -h | --config-dir PATH]
|
||||
|
||||
Run the Unciv game.
|
||||
|
||||
With '--help' or '-h', show this help info and exit.
|
||||
|
||||
With '--config-dir PATH', use/make configuration files in PATH instead
|
||||
of the default of '$CONFIG_DIR'.
|
||||
|
||||
"
|
||||
|
||||
usage() {
|
||||
echo "$USAGE"
|
||||
exit 0
|
||||
}
|
||||
|
||||
fail() {
|
||||
echo "Error: $1"
|
||||
usage
|
||||
exit 1
|
||||
}
|
||||
|
||||
if [ "$#" -gt "0" ]; then
|
||||
case "$1" in
|
||||
--help|-h)
|
||||
shift
|
||||
usage
|
||||
;;
|
||||
--config-dir)
|
||||
CONFIG_DIR="$2"
|
||||
shift 2
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
fi
|
||||
if ! [ "$#" -eq "0" ]; then
|
||||
fail "Unknown argument(s): $*"
|
||||
fi
|
||||
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
cd "$CONFIG_DIR" || fail "Could not 'cd' to '$CONFIG_DIR'"
|
||||
java -jar /usr/share/Unciv/Unciv.jar
|
||||
Loading…
Add table
Reference in a new issue