Username: Password: Remember me
# Maintainer: Mark Haferkamp <chakralinux dot org at refola dot com>
 
pkgname=unciv
pkgver=3.6.14
#_patch=
pkgrel=1
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"
       )
sha256sums=('96a5f11fda113575aa4b174da1414e82ce12f2928e558b906f2f9b41c6b4c114'
            'fb46cc753c37ac1da26873b325e88bd0806b4ed949f5c1af220c8a9cf0559f21'
            '7adc16ea2a3fc7cb2cd28a8d43dd5df89c0ec857a7c481fcba8f18629e7232fa')
 
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"
}