summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cce322a8c03b9ce5f1a72ebd4a42db89daec65a (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
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Benjamin Hodgetts <ben@xnode.org>

pkgname=1oom-git
pkgver=r747.81ce406
pkgrel=1
pkgdesc="1oom is a Master of Orion (1993) game engine recreation."
arch=(x86_64)
url=https://gitlab.com/Tapani_/1oom
license=('GPL2')
depends=(sdl2 libsamplerate sdl2_mixer)
makedepends=(git)
provides=(1oom)
conflicts=(1oom)
source=('git+https://gitlab.com/Tapani_/1oom.git')
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/1oom"
    echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
    cd 1oom
    autoreconf -fi
    ./configure --prefix=/usr --disable-hwsdl1
    make
}

package() {
    cd 1oom
    make PREFIX="/usr" DESTDIR="${pkgdir}" install
}