summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d69a931cb9c3f2717cf0a3d4169ae28f2d6cb635 (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
45
# Maintainer: Zion Nimchuk <zionnimchuk@gmail.com>

pkgname=melonds-git
_gitname=melonds
_releasever=0.6
pkgver=${_releasever}.3881b26
pkgdesc='DS emulator, sorta. also 1st quality melon.'
pkgrel=1
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="http://melonds.kuribo64.net/"
license=('GPLv3')
makedepends=('git')
depends=('gtk3+' 'pkg-config')
source=("${_gitname}::git://github.com/StapleButter/${_gitname}.git")
provdes=('melonds')
conflicts=('melonds')

md5sums=('SKIP')

pkgver()
{
  cd "${_gitname}"
  echo "${_releasever}.$(git rev-parse --short HEAD)"
}

build()
{
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
  cd build
  cmake ../${_gitname} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX='/usr'
  make
}

package()
{
  cd build
  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: