summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFrederic Bezies2019-08-14 21:52:16 +0200
committerFrederic Bezies2019-08-14 21:52:16 +0200
commit4790e8efa1f3539b8bdb665a2c9e45b5b7574546 (patch)
tree13cab7efc180d838b15232b7cd459c043e8d9a08 /PKGBUILD
parent7f6b27f2d2054e1c8b1e8bfe49433d8449fa008d (diff)
downloadaur-4790e8efa1f3539b8bdb665a2c9e45b5b7574546.tar.gz
4.5.0 update and some tweaks
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 11 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9ca7f697371..1c1222c57bb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,21 @@
-# Maintainer: Colin Pitrat <colin dot pitrat at gmail dot com>
+# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
+# Contributor: Colin Pitrat <colin dot pitrat at gmail dot com>
pkgname=caprice32-git
-pkgver=r18.2aa01a6
+pkgver=v4.5.0.r63.gb779723
pkgrel=1
pkgdesc="An emulator of the Amstrad CPC 8bit home computer range (CPC 464, 664, 6128)"
arch=('i686' 'x86_64')
url="https://github.com/ColinPitrat/caprice32"
license=('GPL2')
depends=('sdl' 'zlib' 'gcc-libs')
-source=(git://github.com/ColinPitrat/caprice32)
-sha256sums=('SKIP')
+source=(git://github.com/ColinPitrat/caprice32
+caprice32.desktop)
+sha256sums=('SKIP'
+ '6ebca670aad7cf21582297725d242d2fc7b730e6ddf50b6710c3851d5c7cfa15')
pkgver() {
cd caprice32
- echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+ git describe --long | sed 's/^latest-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
@@ -28,7 +31,9 @@ package() {
mkdir -p $pkgdir/usr/share/caprice32/rom
cp rom/* $pkgdir/usr/share/caprice32/rom/
mkdir -p $pkgdir/usr/share/caprice32/resources
- cp resources/* $pkgdir/usr/share/caprice32/resources
+ cp -r resources/* $pkgdir/usr/share/caprice32/resources
+ mkdir -p $pkgdir/usr/share/applications
+ cp $srcdir/caprice32.desktop $pkgdir/usr/share/applications/
install -Dm755 cap32.cfg "$pkgdir/etc/cap32.cfg"
install -Dm755 cap32 "$pkgdir/usr/bin/cap32"
}