summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Whatson2018-11-07 23:02:19 +1000
committerAndrew Whatson2018-11-07 23:04:20 +1000
commit6b28cc4e20c806243cdbea49b59e15c90e34f2c4 (patch)
tree2883210711e2ef7485262ae8013c6f2aad462182
downloadaur-6b28cc4e20c806243cdbea49b59e15c90e34f2c4.tar.gz
Initial faudio-git pkgbuild
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD37
-rw-r--r--faudio.pc10
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..79089461aa7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = faudio-git
+ pkgdesc = Accuracy-focused XAudio reimplementation for open platforms
+ pkgver = r894.27cdf05
+ pkgrel = 1
+ url = https://github.com/FNA-XNA/FAudio
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = git
+ depends = sdl2
+ depends = ffmpeg
+ source = git+https://github.com/FNA-XNA/FAudio
+ source = faudio.pc
+ sha256sums = SKIP
+ sha256sums = 19dfd14a8d04d88bec136f72486dee3d02f5c9e890abaebe62e1982164764c87
+
+pkgname = faudio-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0d7c0ad3f74
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pkg.tar.xz
+/FAudio/
+/pkg/
+/src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..36b6bb63074
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Andrew Whatson <whatson@gmail.com>
+_pkgname=faudio
+_gitname=FAudio
+pkgname=${_pkgname}-git
+pkgver=r894.27cdf05
+pkgrel=1
+pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
+arch=('i686' 'x86_64')
+url="https://github.com/FNA-XNA/FAudio"
+license=('custom')
+depends=('sdl2' 'ffmpeg')
+makedepends=('git')
+source=('git+https://github.com/FNA-XNA/FAudio'
+ 'faudio.pc')
+sha256sums=('SKIP'
+ '19dfd14a8d04d88bec136f72486dee3d02f5c9e890abaebe62e1982164764c87')
+
+pkgver() {
+ cd "$srcdir/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${_gitname}"
+ FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 make
+}
+
+package() {
+ cd "$srcdir/${_gitname}"
+ _tmpdir="${pkgdir}/temp"
+ FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 INSTALL_PREFIX="${_tmpdir}" make install
+ install -D -t "${pkgdir}/usr/lib" "${_tmpdir}/lib"/*
+ install -D -m644 -t "${pkgdir}/usr/include/${_gitname}" "${_tmpdir}/include"/*
+ install -D -m644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" LICENSE
+ install -D -m644 -t "${pkgdir}/usr/lib/pkgconfig" ../faudio.pc
+ rm -rf "${_tmpdir}"
+}
diff --git a/faudio.pc b/faudio.pc
new file mode 100644
index 00000000000..531e11e265a
--- /dev/null
+++ b/faudio.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+libdir=${prefix}/lib
+includedir=${prefix}/include/FAudio
+
+Name: faudio
+Description: Accuracy-focused XAudio reimplementation for open platforms
+Version:
+
+Libs: -L${libdir} -lFAudio
+Cflags: -I${includedir}