summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d4719f5f09cff0ca4b29fb1ec877db3b59488401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Based on the PKGBUILD by Sebastian Wolf <fatmike303 at googlemail dot com>

pkgname=yape-git
_pkgname=yapesdl
pkgver=0.71.2.r31.gdf60292
pkgrel=1
pkgdesc="Multiplatform Commodore 64 and 264 family emulator written in C++ using SDL2 - Development version"
arch=(i686 x86_64)
url=https://github.com/calmopyrin/yapesdl
license=(GPL)
makedepends=('git')
depends=(sdl2)
conflicts=(yape)
source=(git+https://github.com/calmopyrin/yapesdl.git)
sha256sums=('SKIP')
options=(!debug)

pkgver() {
  cd "$_pkgname"
  #git describe --long --tags --abbrev=7 | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g'
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | cut -c2-47
}

build() {
  cd "$_pkgname"
  make
}

package() {
  cd "$_pkgname"
	install -Dm755 ${srcdir}/${_pkgname}/${_pkgname} ${pkgdir}/usr/bin/yape
}