summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a777934d736d7595987a1158954e5a204d37966b (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
pkgname=dgengine-physfs-git
pkgver=1
pkgrel=1
pkgdesc="PhysicsFS with MPQ files support"
arch=('i686' 'x86_64')
url="https://github.com/dgengin/physfs"
license=('ZLIB')
depends=('zlib')
makedepends=('cmake' 'git')
source=("${pkgname}::git+https://github.com/dgengin/physfs.git")
sha1sums=('SKIP')
provides=("physfs")
conflicts=("physfs")

build() {
  mkdir build
  cd build
  cmake ../${pkgname} -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DPHYSFS_BUILD_TEST=OFF
  make all
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
  install -d "${pkgdir}"/usr/share/physfs
}