diff options
author | smls | 2015-08-14 23:55:12 +0200 |
---|---|---|
committer | smls | 2015-08-14 23:55:12 +0200 |
commit | 7843062cf517ec0cb8408d09e1316e205ae9a220 (patch) | |
tree | 76c0c1ad795225737f9542c8507c47bddf249ef6 | |
parent | 29e84c0234b38b192ebc1fb4f272cf0a614a7f45 (diff) | |
download | aur-7843062cf517ec0cb8408d09e1316e205ae9a220.tar.gz |
install things to the correct places (un-breaks package installation)
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 36 insertions, 12 deletions
@@ -24,7 +24,7 @@ pkgbase = arx-git optdepends = qt4: enable built-in crash handler (Qt4 version; recompile needed) optdepends = gdb: generate detailed crash reports provides = arx - conflicts = arx + conflicts = arx arxlibertatis source = git+https://github.com/arx/ArxLibertatis.git md5sums = SKIP @@ -2,6 +2,7 @@ # Contributor: Lubosz Sarnecki <lubosz at gmail> pkgname=arx-git +_installname=arx pkgver=1.1.2.r5464.gc87968a pkgrel=1 pkgdesc='Cross-platform port of Arx Fatalis, a first-person fantasy RPG (executables only; Git version)' @@ -17,7 +18,7 @@ optdepends=('arxfatalis-data-gog: game data from GOG.com installer' 'gdb: generate detailed crash reports') makedepends=('git' 'cmake') provides=('arx') -conflicts=('arx') +conflicts=('arx arxlibertatis') install=arx.install _gitname=ArxLibertatis @@ -33,17 +34,40 @@ pkgver() { } build() { - cd $_gitname - - msg "Starting cmake for: ${pkgname}" - cmake . \ - -DCMAKE_INSTALL_PREFIX=/usr - - make || return 1 + cd $_gitname + + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBEXECDIR=lib/$_installname \ + -DINSTALL_DATADIR=share/$_installname \ + -DCMAKE_BUILD_TYPE=Release \ + -DUNITY_BUILD=ON + + # UNITY_BUILD + # produces a more optimized binary, but uses a lot of RAM during + # compilation - disable if low on memory. + # + # CMAKE_BUILD_TYPE=Release + # can be changed to CMAKE_BUILD_TYPE=Debug to get a debug build, + # which will run signifincantly slower but enables more runtime + # checks and generates better crash reports. + + make } package() { - cd $_gitname - make DESTDIR=$pkgdir install || return 1 + cd $_gitname + + make DESTDIR="$pkgdir" install + + install -Dm644 README.md \ + "$pkgdir"/usr/share/doc/$_installname/README.md + install -Dm644 CHANGELOG \ + "$pkgdir"/usr/share/doc/$_installname/CHANGELOG + install -Dm644 AUTHORS \ + "$pkgdir"/usr/share/doc/$_installname/AUTHORS + install -Dm644 LICENSE \ + "$pkgdir"/usr/share/licenses/$_installname/LICENSE + install -Dm644 LICENSE.DejaVu \ + "$pkgdir"/usr/share/licenses/$_installname/LICENSE.DejaVu } - |