# Maintainer: jc_gargma # Maintainer (AUR): NiNjA # # I maintain this because: # AUR version lacks additional optimization and hardening flags _pkgname=julius pkgname=$_pkgname-game pkgver=1.4.1 pkgrel=1 pkgdesc="Open source re-implementation of Caesar III (Original copy required)" arch=('i686' 'x86_64' 'aarch64') url="https://github.com/bvschaik/julius" license=('AGPL') depends=('sdl2' 'sdl2_mixer') makedepends=('cmake') install="$pkgname.install" source=($pkgname-$pkgver.tar.gz::https://github.com/bvschaik/julius/archive/v$pkgver.tar.gz $pkgname.desktop $pkgname.install ) b2sums=('8eb91522fccdee33600b02de766727beb19f138c0f695eb92aaa77ea2f25ec293906d0c75d31d42159097a12317ba38b22c01e7edf722670f51fe56d625d9ae7' '42c72e9571e84beedc41d1e263c9ed8b24366b7e163836d63847f28fa3c7b5017770bda6db350f75d45784a98123932122d5d57b82b0a96d95cc8ff57427db34' 'ba7f7d492719e1f80395d1f5a5e66b0254c4fb4bbcbd2c9234b05161c16b3795f3eb2330394fb07c891389a81c575134a5bdc8ddc385be8e34f1d1516bc76221') build() { cd "$srcdir/$_pkgname-$pkgver" export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" export LDFLAGS="$LDFLAGS,-pie" cmake . make } package() { install -Dm755 "$srcdir/$_pkgname-$pkgver/$_pkgname" "$pkgdir/usr/bin/$pkgname" install -Dm644 "$srcdir/$_pkgname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_48.png" "$pkgdir/usr/share/pixmaps/${pkgname}48.png" install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_256.png" "$pkgdir/usr/share/pixmaps/${pkgname}256.png" install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_512.png" "$pkgdir/usr/share/pixmaps/${pkgname}512.png" install -Dm664 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" }