summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 493e4e43aa54ed85c507957c9c96e33e3e7f933f (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
# Maintainer: Beini <bane AT iki dot fi>

pkgname=jk2mv
pkgver=1.1
pkgrel=1
pkgdesc="Modification for Jedi Knight II: Jedi Outcast."
arch=('i686' 'x86_64')
url="https://jk2mv.org"
license=('GPL')
depends=('libgl' 'openal' 'zlib' 'sdl2' 'curl' 'libpng' 'libjpeg' 'glu')
makedepends=('cmake' 'yasm')
source=("https://github.com/mvdevs/$pkgname/archive/$pkgver.tar.gz"
        'jk2mv.install')
install=jk2mv.install
sha256sums=('9f293d8a476f3d47d5aeb26e9db8aa182b3c0275359bc7b5c2b069526c57632d'
            '8873237a7c6f12a0347b3e44cb237110ba526603e2b64aa4914bf4845be477c2')
build() {
  cd "${srcdir}/$pkgname-$pkgver"

  cd build
  cmake -G "Unix Makefiles" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DUseInternalPNG=OFF \
    -DUseInternalJPEG=OFF \
    -DUseInternalZLIB=OFF \
    -DUseInternalCURL=OFF \
    ..
  make
}

package() {
  cd "${srcdir}/$pkgname-$pkgver/build/"

  make DESTDIR="${pkgdir}" install

}

# vim: set ts=2 sw=2 ft=sh et: