summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAndrew Whatson2018-12-11 16:13:19 +1000
committerAndrew Whatson2018-12-11 16:13:19 +1000
commit97dda77ddca536128de51ece6d424690cd491cfd (patch)
tree0ba762f0cc1e1616e9ae35a589a4d7de4948cf5b /PKGBUILD
parent4ec0929b0a8a67801b3647c2cfb040fbf3e84c74 (diff)
downloadaur-97dda77ddca536128de51ece6d424690cd491cfd.tar.gz
Update for CMake GNUInstallDirs
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 3 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 968d847a378..94595d10292 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=faudio
_gitname=FAudio
pkgname=${_pkgname}-git
-pkgver=r979.a98be73
+pkgver=r988.911edc7
pkgrel=1
pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
arch=('i686' 'x86_64')
@@ -29,6 +29,8 @@ build() {
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_INCLUDEDIR=include/FAudio \
-DFFMPEG=ON
make
@@ -39,12 +41,6 @@ package() {
make install
- mkdir "${pkgdir}/usr/include/FAudio"
- mv "${pkgdir}/usr/include"/*.h "${pkgdir}/usr/include/FAudio"
-
- sed -i 's!"${_IMPORT_PREFIX}/include"!"${_IMPORT_PREFIX}/include/FAudio"!' \
- "${pkgdir}/usr/lib/cmake/FAudio/FAudio-targets.cmake"
-
install -D -m644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" ../LICENSE
install -D -m644 -t "${pkgdir}/usr/lib/pkgconfig" ../../faudio.pc
}