summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorColin Pitrat2016-01-06 17:13:44 +0100
committerColin Pitrat2016-01-06 17:13:44 +0100
commitb39bd0a1d0443a176b34615a01616ebdb6d59c17 (patch)
treef5b64a9ac5ee27f3b261fe54e6652af0da61461e /PKGBUILD
downloadaur-b39bd0a1d0443a176b34615a01616ebdb6d59c17.tar.gz
Creation of package for caprice32
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2299ae2ebe0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Colin Pitrat <colin dot pitrat at gmail dot com>
+pkgname=caprice32-git
+pkgver=r18.2aa01a6
+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')
+
+pkgver() {
+ cd caprice32
+ echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd caprice32
+ make RELEASE=true
+}
+
+package() {
+ cd caprice32
+ mkdir -p $pkgdir/usr/share/caprice32/rom
+ cp rom/* $pkgdir/usr/share/caprice32/rom/
+ #mkdir -p $pkgdir/usr/share/caprice32/resource
+ #cp resource/* $pkgdir/usr/share/caprice32/rom/
+ install -Dm755 cap32.cfg "$pkgdir/etc/cap32.cfg"
+ install -Dm755 cap32 "$pkgdir/usr/bin/cap32"
+}