diff options
author | Michael Koloberdin | 2018-11-10 21:15:33 +0200 |
---|---|---|
committer | Michael Koloberdin | 2018-11-10 21:15:33 +0200 |
commit | 80e6619dd2f4212792255cb42ab59a1c60cae8c7 (patch) | |
tree | f47a6168850fec4e16a86e533f0499c9612b6726 | |
download | aur-80e6619dd2f4212792255cb42ab59a1c60cae8c7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 62 |
2 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e4ea0c04f1ad --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = unreal-speccy-portable-git + pkgdesc = Portable ZX Spectrum emulator based on UnrealSpeccy 0.37.3 by SMT + pkgver = 0.0.83.r1.ged823c7 + pkgrel = 1 + url = https://bitbucket.org/djdron/unrealspeccyp + arch = x86_64 + license = GPL + makedepends = git + depends = sdl + depends = curl + depends = mesa + provides = unreal-speccy-portable + conflicts = unreal-speccy-portable + source = git+https://bitbucket.org/djdron/unrealspeccyp + md5sums = SKIP + +pkgname = unreal-speccy-portable-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c860c5b47290 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,62 @@ +# Maintainer: Michael Koloberdin <koloberdin@gmail.com> +pkgname=unreal-speccy-portable-git +pkgver=0.0.83.r1.ged823c7 +pkgrel=1 +pkgdesc="Portable ZX Spectrum emulator based on UnrealSpeccy 0.37.3 by SMT" +arch=('x86_64') +_reponame='unrealspeccyp' +url="https://bitbucket.org/djdron/${_reponame}" +license=('GPL') +depends=('sdl' 'curl' 'mesa') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+https://bitbucket.org/djdron/${_reponame}") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${_reponame}" + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "$srcdir/${_reponame}/build/cmake" + mkdir build + cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DUSE_SDL=Off -DUSE_SDL2=On \ + -DSDL2_INCLUDE_DIRS="/usr/inlude" \ + -DCMAKE_CXX_FLAGS="`sdl2-config --cflags`" \ + -DCMAKE_EXE_LINKER_FLAGS="`sdl2-config --libs`" + make +} + +package() { + cd "$srcdir/${_reponame}" + + install -Dm755 build/cmake/build/unreal_speccy_portable \ + "$pkgdir"/usr/lib/unreal-speccy-portable/unreal_speccy_portable + + install -dm755 "$pkgdir"/usr/lib/unreal-speccy-portable/res + cp -r res "$pkgdir"/usr/lib/unreal-speccy-portable + + cd build/install/linux/debian + + install -Dm755 usr/bin/unreal-speccy-portable \ + "$pkgdir"/usr/bin/unreal-speccy-portable + + install -Dm644 usr/share/applications/unreal-speccy-portable.desktop \ + "$pkgdir"/usr/share/applications/unreal-speccy-portable.desktop + + for size in 22x22 24x24 32x32 48x48 64x64 128x128; do + install -Dm644 usr/share/icons/hicolor/$size/apps/unreal_speccy_portable.png \ + "$pkgdir"/usr/share/icons/hicolor/$size/apps/unreal_speccy_portable.png + done + + install -Dm644 usr/share/mime/packages/unreal_speccy_portable.xml \ + "$pkgdir"/usr/share/mime/packages/unreal_speccy_portable.xml + +} + +# vim:set ts=2 sw=2 et: |