Username: Password: Remember me
# Maintainer: Mark Haferkamp <chakralinux dot org at refola dot com>
 
pkgname=unciv
pkgver=3.3.4
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/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=('ff8babb2a56294afd6d52ebe8ccae6991c41d7b238dfcc9b7de50b1c1a37d3f0'
            'fb46cc753c37ac1da26873b325e88bd0806b4ed949f5c1af220c8a9cf0559f21'
            '89bf09c8d2ef0d6b94ab94b5e8d425f4a57f3c9c39e6b17c536244d5f1a18b0c')
 
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"
}