summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d50c1609507e72026f99f73d0471ea5d58a5d8ec (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Jose Riha < jose 1711 gmail com >

pkgname=gpmd85emulator-git
pkgver=r107.d1be955
pkgrel=1
pkgdesc="Multiplatform GNU/GPL Tesla PMD 85 Emulator (git version)"
arch=('i686' 'x86_64')
url="https://github.com/mborik/GPMD85Emulator"
license=('GPL')
depends=('gcc-libs' 'sdl')
makedepends=('autoconf' 'automake')
conflicts=('gpmd85emulator')
provides=('gpmd85emulator')
source=("${pkgname}"::'git+https://github.com/mborik/GPMD85Emulator.git'
	      "gpmd85emulator.desktop"
	      "gpmd85emulator_sw.desktop")
md5sums=('SKIP'
         'b4f4a1ed5508393b306dd3c0a786e86b'
         '8672b3ffbd705fea9a0ff2c7d64fe9b0')

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build ()
{
  cd $srcdir/$pkgname
  aclocal
  automake --add-missing
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname
  mkdir -p $pkgdir/usr/share/gpmd85emu
  make DESTDIR=$pkgdir install
  install -D -m644 res/icon.bmp $pkgdir/usr/share/pixmaps/gpmd85emulator.bmp
  install -D -m644 $srcdir/gpmd85emulator.desktop ${pkgdir}/usr/share/applications/gpmd85emulator.desktop
  install -D -m644 $srcdir/gpmd85emulator_sw.desktop ${pkgdir}/usr/share/applications/gpmd85emulator_sw.desktop
  install -D -m644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
}