Username: Password: Remember me
# NOTICE: This is this package's last update on the CCR until someone
# else adopts it. If you do so, then please update the "Maintainer"
# line below with your information. You may also find the following
# PKGBUILD update script useful:
# https://gist.github.com/refola/d05df4de846965c0c91cb00f654fd53d
 
# Maintainer: You Name Here <email address at domain dot tld>
# Contributor: Mark Haferkamp <chakralinux dot org at refola dot com>
pkgname=unciv
pkgver=3.11.13
#_patch=
# pkgrel = patch version + 1
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"
       )
b2sums=('a40598430ca01b3f6507eeee38c9b504d009ef99dea107796e8e15b03fa7b6fc463d621db79f64b97dda910472bc680e5bf2930a7bd4b45e076a06180243863d'
        '0a9265ddc05b32da195781d976bc2c0c587e10e710571ebd999ba0b0510cd08b99aaa87cc38e632a09d407440d935ec14a4464191e21d19805fa9274a73b3b93'
        '37d41307e7351aba3afa580c3c7087682abf21a3b5e8855cf5daf9c32e2d3e71290709ad73f663b52fa22374d7007aff976dcfc1567c2a1074bc924475c1d26f')
 
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"
}