summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeine Pedersen2019-10-08 16:56:03 +0200
committerHeine Pedersen2019-10-08 16:56:03 +0200
commit98d0430b4fba1481d0308895485021c320976c57 (patch)
tree79e5f60f8536258bdebaababa3960c53d7edb6ac
parente97c745a45242a1ffbcc42f517e3d0f82dbfe472 (diff)
downloadaur-98d0430b4fba1481d0308895485021c320976c57.tar.gz
Conformed to pkgbuild guidelines
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD36
2 files changed, 23 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb19d1693e3..3e83e008b43 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = julius-game
pkgdesc = Open source re-implementation of Caesar III (Original copy required)
pkgver = 1.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/bvschaik/julius
install = julius-game.install
arch = i686
arch = x86_64
- license = Affero GPL
+ license = AGPL
+ makedepends = cmake
depends = sdl2
depends = sdl2_mixer
source = julius-game.desktop
diff --git a/PKGBUILD b/PKGBUILD
index 8490245c504..f918be89025 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,11 +3,12 @@
_pkgname=julius
pkgname=$_pkgname-game
pkgver=1.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="Open source re-implementation of Caesar III (Original copy required)"
arch=('i686' 'x86_64')
url="https://github.com/bvschaik/julius"
-license=('Affero GPL')
+license=('AGPL')
+makedepends=('cmake')
depends=('sdl2' 'sdl2_mixer')
install="$pkgname.install"
source=($pkgname.desktop $pkgname.install fix_build_with_sdl2_2.0.10.patch add_filename_macro.patch $url/archive/v$pkgver.zip)
@@ -17,21 +18,24 @@ sha256sums=('d44482503d890ab62e64f607c67b5c9686de68e17411920d3c02d54d468ac2a2'
'86d1468c89d8c6624224207fb3b864d54ce82889302766934859d2eb6c8c99b8'
'dfb66d15713592c02f3564e8359f55117b2b4365181f62d877cd26c50f092ed3')
-package() {
+prepare() {
cd "$srcdir/$_pkgname-$pkgver"
- patch -p1 < ../fix_build_with_sdl2_2.0.10.patch
- patch -p0 < ../add_filename_macro.patch
- sed -i 's#__FILE__#__FILENAME__#g' ext/libsmacker/* # replace full path in symbol table with base name
- mkdir build && cd build
- cmake ..
- make
+ patch -p1 < ../fix_build_with_sdl2_2.0.10.patch
+ patch -p0 < ../add_filename_macro.patch
+ sed -i 's#__FILE__#__FILENAME__#g' ext/libsmacker/* # replace full path in symbol table with base name
+}
- mkdir -p "$pkgdir"/usr/{bin,share/applications,share/pixmaps}
- cp julius "$pkgdir/usr/bin/julius-game"
- install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_48.png" "$pkgdir/usr/share/pixmaps/julius-game48.png"
- install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_256.png" "$pkgdir/usr/share/pixmaps/julius-game256.png"
- install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_512.png" "$pkgdir/usr/share/pixmaps/julius-game512.png"
- install -Dm664 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications"
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ cmake .
+ make
+}
- return 0
+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/julius_48.png"
+ install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_256.png" "$pkgdir/usr/share/pixmaps/julius_256.png"
+ install -Dm664 "$srcdir/$_pkgname-$pkgver/res/julius_512.png" "$pkgdir/usr/share/pixmaps/julius_512.png"
+ install -Dm664 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}