Username: Password: Remember me
# Maintainer: Mark Haferkamp <chakralinux dot org at refola dot com>
 
pkgname=unciv
pkgver=3.4.7
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/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/linuxFilesForJar.zip"
       )
sha256sums=('512c994c275f386bd21579832690df95288a7697c6d8a5d2380dd7d9027c18a8'
            'fb46cc753c37ac1da26873b325e88bd0806b4ed949f5c1af220c8a9cf0559f21'
            '73ac626178ad73aeccda886e55cf6c783c2988a585cb3fdfae10bd5d0d738f01')
 
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"
}