summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Whatson2018-12-11 16:14:32 +1000
committerAndrew Whatson2018-12-11 16:14:32 +1000
commit13cdc6f7947ce6b85fa87c93193c098a192ccd9f (patch)
treec5bafd94f9c51a3cfe395306a8abcadf51ee9efd
parentec2bffd7c2ee889c23cdcbb095322376250487e6 (diff)
downloadaur-13cdc6f7947ce6b85fa87c93193c098a192ccd9f.tar.gz
Update for CMake GNUInstallDirs
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD11
2 files changed, 4 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2f4cae1473b..ceb808d0cf3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = lib32-faudio-git
pkgdesc = Accuracy-focused XAudio reimplementation for open platforms
- pkgver = r979.a98be73
+ pkgver = r988.911edc7
pkgrel = 1
url = https://github.com/FNA-XNA/FAudio
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index b08e5980b0e..dbef74cbe95 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@ _pkgbase=faudio
_pkgname=lib32-${_pkgbase}
_gitname=FAudio
pkgname=${_pkgname}-git
-pkgver=r979.a98be73
+pkgver=r988.911edc7
pkgrel=1
pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
arch=('x86_64')
@@ -38,6 +38,8 @@ build() {
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
+ -DCMAKE_INSTALL_LIBDIR=lib32 \
+ -DCMAKE_INSTALL_INCLUDEDIR=include/FAudio \
-DFFMPEG=ON \
-DFFmpeg_LIBRARY_DIRS=/usr/lib32
@@ -50,13 +52,6 @@ package() {
make install
rm -r "${pkgdir}/usr/include"
- mv "${pkgdir}/usr/lib" "${pkgdir}/usr/lib32"
-
- sed -i 's!"${_IMPORT_PREFIX}/include"!"${_IMPORT_PREFIX}/include/FAudio"!' \
- "${pkgdir}/usr/lib32/cmake/FAudio/FAudio-targets.cmake"
-
- sed -i 's!"${_IMPORT_PREFIX}/lib/libFAudio.so"!"${_IMPORT_PREFIX}/lib32/libFAudio.so"!' \
- "${pkgdir}/usr/lib32/cmake/FAudio/FAudio-targets-release.cmake"
mkdir -p "${pkgdir}/usr/share/licenses"
ln -s "${_pkgbase}" "${pkgdir}/usr/share/licenses/${_pkgname}"