summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 301eab4860cf6535f29cd2ef804c39c472de0b83 (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
# Maintainer: quellen <lodgerz@gmail.com>

pkgname=libretro-fsuae-git
pkgver=1712.7990f7ad
pkgrel=1
pkgdesc="A port of the Commodore Amiga Emulator to libretro (WIP)"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/libretro/libretro-fsuae"
license=('GPL3')
groups=('libretro')
depends=('zlib' 'libretro-core-info' 'libmpeg2')
makedepends=('git')

_libname=fsuae_libretro
_gitname=libretro-fsuae
source=("git+https://github.com/libretro/${_gitname}.git")
sha256sums=('SKIP')

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

build() {
  cd "${_gitname}"
  CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
  CXXFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
  ./autogen.sh
  ./configure
  make gen
  make clean
  make
}

package() {
  install -Dm644 "${_gitname}/${_libname}.so" "${pkgdir}/usr/lib/libretro/${_libname}.so"
}