Username: Password: Remember me
pkgname=unciv
pkgver=3.10.8
_patch=1
# pkgrel = patch version + 1
pkgrel=2
pkgdesc="Open-source Android/Desktop remake of Civ V"
url="https://github.com/yairm210/UnCiv"
arch=(any)
license=(MPL-2.0)
depends=(java-runtime)
source=("https://github.com/yairm210/Unciv/releases/download/$pkgver${_patch:+-patch$_patch}/Unciv.jar"
        "https://raw.githubusercontent.com/yairm210/Unciv/master/extraImages/Unciv%20icon%20v3%20for%20google%20play.png"
        "https://github.com/yairm210/Unciv/releases/download/$pkgver${_patch:+-patch$_patch}/linuxFilesForJar.zip"
       )
b2sums=('a8ff97096f303c25770b83eb3ffddc2541b2f7cdbd16d9aaff9a16becfd81b76d517ea48e51ac6821e3a1dec4488e991acfe61abdc780e77f5d42b4b726c7b36'
        '0a9265ddc05b32da195781d976bc2c0c587e10e710571ebd999ba0b0510cd08b99aaa87cc38e632a09d407440d935ec14a4464191e21d19805fa9274a73b3b93'
        '97263dc8b23edbdc889b3c26b80a82960d11ff66e6f203416cdb621841e1dd577fe6d8c46addb87009baab75c15fb28ff0cde40e9594b375bbd5eceb898d9a88')
 
package() {
  install -Dm644 Unciv.jar "$pkgdir/usr/share/Unciv/Unciv.jar"
  install -Dm644 unciv.desktop "$pkgdir/usr/share/applications/unciv.desktop"
  install -Dm644 "Unciv%20icon%20v3%20for%20google%20play.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/unciv.png"
  install -Dm755 Unciv.sh "$pkgdir/usr/bin/Unciv"
}