summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Bezies2019-08-14 21:52:16 +0200
committerFrederic Bezies2019-08-14 21:52:16 +0200
commit4790e8efa1f3539b8bdb665a2c9e45b5b7574546 (patch)
tree13cab7efc180d838b15232b7cd459c043e8d9a08
parent7f6b27f2d2054e1c8b1e8bfe49433d8449fa008d (diff)
downloadaur-4790e8efa1f3539b8bdb665a2c9e45b5b7574546.tar.gz
4.5.0 update and some tweaks
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD17
-rw-r--r--caprice32.desktop14
3 files changed, 28 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9ea395594df..2a6728b3a54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,6 @@
-# Generated by mksrcinfo v8
-# Sun Jul 17 19:22:19 UTC 2016
pkgbase = caprice32-git
pkgdesc = An emulator of the Amstrad CPC 8bit home computer range (CPC 464, 664, 6128)
- pkgver = r18.2aa01a6
+ pkgver = v4.5.0.r63.gb779723
pkgrel = 1
url = https://github.com/ColinPitrat/caprice32
arch = i686
@@ -12,7 +10,9 @@ pkgbase = caprice32-git
depends = zlib
depends = gcc-libs
source = git://github.com/ColinPitrat/caprice32
+ source = caprice32.desktop
sha256sums = SKIP
+ sha256sums = 6ebca670aad7cf21582297725d242d2fc7b730e6ddf50b6710c3851d5c7cfa15
pkgname = caprice32-git
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"
}
diff --git a/caprice32.desktop b/caprice32.desktop
new file mode 100644
index 00000000000..2b8ddd988d0
--- /dev/null
+++ b/caprice32.desktop
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=Caprice 32 (Amstrad CPC)
+GenericName=Caprice 32 CPC Emulator
+GenericName[es]=Caprice 32 Emulador CPC
+GenericName[fr]=Caprice 32 Emulateur CPC
+Comment=Amstrad CPC/CPC+ Emulator
+Comment[es]=Emulador de Amstrad CPC/CPC+
+Comment[fr]=Emulateur Amstrad CPC/CPC+
+Icon=/usr/share/caprice32/resources/freedesktop/caprice32.png
+Exec=cap32
+Terminal=false
+Categories=Game