summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15762e7a4c292746fbb3fc4befec0df29969bfd8 (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
# Maintainer: Chris Simpson <csimpson.aur at gmail dot com>

pkgname=vanfanel-sdl-rbp-git
pkgver=12.5e5cf17
pkgrel=1
pkgdesc="Vanfanel's SDL 1.2.15 fork that includes a better RaspberryPi native 2D API driver for optimal performance and visuals"
arch=('armv7h')
url="https://github.com/vanfanel/SDL-1.2.15-raspberrypi"
license=('GPL')
depends=(raspberrypi-firmware-tools bash)
makedepends=()
provides=('sdl')
conflicts=('sdl')

source=("git+https://github.com/vanfanel/SDL-1.2.15-raspberrypi.git")
md5sums=('SKIP')

_gitname=SDL-1.2.15-raspberrypi

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

build() {
  cd "$_gitname"
  ./MAC_ConfigureSDL12-rpi2.sh
  make
}

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