summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed32d4dfe4fad3f5d78a2ddcc800ac9a1e3ea1d1 (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
# Maintainer: Kyle Keen <keenerd@gmail.com>
pkgname=mininim
pkgver=201701122309
pkgrel=1
pkgdesc="the Advanced Prince of Persia Engine, based on 1989 release"
arch=('i686' 'x86_64')
url="https://oitofelix.github.io/mininim/"
license=('GPL3')
depends=('allegro')
makedepends=('gnulib' 'help2man')
source=("https://github.com/oitofelix/mininim/archive/v$pkgver.tar.gz")
md5sums=('da4e45c0aa08f689cd4848dcc8de9214')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's|"${pkgdatadir}"|"$(DESTDIR)${pkgdatadir}"|g' Make*
  cd doc
  sed -i 's|"${infodir}"|"$(DESTDIR)$(infodir)"|g' Make*
}

build() { 
  cd "$srcdir/$pkgname-$pkgver"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}