summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Whatson2018-12-04 23:29:57 +1000
committerAndrew Whatson2018-12-04 23:29:57 +1000
commitde70e62e2491e30b2e83079a4142d05c2d080f81 (patch)
treede75c1a519fa286c802bf31ab17866aae94059a0
parent2d9fac34cbc38a5f6ae03c760e8a24d03ee182fd (diff)
downloadaur-de70e62e2491e30b2e83079a4142d05c2d080f81.tar.gz
Add provides, license, minor formatting
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD36
2 files changed, 24 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9c2b1d202b5..32db2c55ea6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,15 @@
pkgbase = lib32-faudio-git
pkgdesc = Accuracy-focused XAudio reimplementation for open platforms
- pkgver = r894.27cdf05
- pkgrel = 1
+ pkgver = r949.acc1aaa
+ pkgrel = 2
url = https://github.com/FNA-XNA/FAudio
arch = x86_64
license = custom
makedepends = git
- depends = faudio-git
+ depends = faudio
depends = lib32-sdl2
depends = lib32-ffmpeg
+ provides = lib32-faudio
source = git+https://github.com/FNA-XNA/FAudio
source = faudio.pc
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 84b9d397441..2c84f61ced1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,16 @@
# Maintainer: Andrew Whatson <whatson@gmail.com>
-_pkgname=faudio
-_pkgbase=${_pkgname}-git
+
+_pkgbase=faudio
+_pkgname=lib32-${_pkgbase}
_gitname=FAudio
-pkgname=lib32-${_pkgbase}
-pkgver=r894.27cdf05
-pkgrel=1
+pkgname=${_pkgname}-git
+pkgver=r949.acc1aaa
+pkgrel=2
pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
arch=('x86_64')
-url="https://github.com/FNA-XNA/FAudio"
+url='https://github.com/FNA-XNA/FAudio'
license=('custom')
+provides=("${_pkgname}")
depends=("${_pkgbase}" 'lib32-sdl2' 'lib32-ffmpeg')
makedepends=('git')
source=('git+https://github.com/FNA-XNA/FAudio'
@@ -17,20 +19,22 @@ sha256sums=('SKIP'
'371d1dfdfa335a354f41376807848ba0cc448890d6da60d0b5c9478033b7e54c')
pkgver() {
- cd "$srcdir/${_gitname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "$srcdir/${_gitname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
- cd "$srcdir/${_gitname}"
- CFLAGS="${CFLAGS} -m32" FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 make
+ cd "$srcdir/${_gitname}"
+ CFLAGS="${CFLAGS} -m32" FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 make
}
package() {
- cd "$srcdir/${_gitname}"
- _tmpdir="${pkgdir}/temp"
- CFLAGS="${CFLAGS} -m32" FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 INSTALL_PREFIX="${_tmpdir}" make install
- install -D -t "${pkgdir}/usr/lib32" "${_tmpdir}/lib"/*
- install -D -m644 -t "${pkgdir}/usr/lib32/pkgconfig" ../faudio.pc
- rm -rf "${_tmpdir}"
+ cd "$srcdir/${_gitname}"
+ _tmpdir="${pkgdir}/temp"
+ CFLAGS="${CFLAGS} -m32" FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 INSTALL_PREFIX="${_tmpdir}" make install
+ install -D -t "${pkgdir}/usr/lib32" "${_tmpdir}/lib"/*
+ install -D -m644 -t "${pkgdir}/usr/lib32/pkgconfig" ../faudio.pc
+ install -d "${pkgdir}/usr/share/licenses"
+ ln -s "${_pkgbase}" "${pkgdir}/usr/share/licenses/${_pkgname}"
+ rm -rf "${_tmpdir}"
}