summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Whatson2018-12-04 23:27:45 +1000
committerAndrew Whatson2018-12-04 23:27:45 +1000
commit777dfebb6a19398b4864afe0d3d75262b45f9d13 (patch)
tree197a9b569353acd06765bafdc3f6415d95909812
parent6b28cc4e20c806243cdbea49b59e15c90e34f2c4 (diff)
downloadaur-777dfebb6a19398b4864afe0d3d75262b45f9d13.tar.gz
Add provides, minor formatting
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD32
2 files changed, 20 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 79089461aa7..1b682258ffa 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = 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 = i686
arch = x86_64
@@ -9,6 +9,7 @@ pkgbase = faudio-git
makedepends = git
depends = sdl2
depends = ffmpeg
+ provides = faudio
source = git+https://github.com/FNA-XNA/FAudio
source = faudio.pc
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 36b6bb63074..8e9e862c23d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,15 @@
# Maintainer: Andrew Whatson <whatson@gmail.com>
+
_pkgname=faudio
_gitname=FAudio
pkgname=${_pkgname}-git
-pkgver=r894.27cdf05
-pkgrel=1
+pkgver=r949.acc1aaa
+pkgrel=2
pkgdesc="Accuracy-focused XAudio reimplementation for open platforms"
arch=('i686' 'x86_64')
-url="https://github.com/FNA-XNA/FAudio"
+url='https://github.com/FNA-XNA/FAudio'
license=('custom')
+provides=("${_pkgname}")
depends=('sdl2' 'ffmpeg')
makedepends=('git')
source=('git+https://github.com/FNA-XNA/FAudio'
@@ -16,22 +18,22 @@ sha256sums=('SKIP'
'19dfd14a8d04d88bec136f72486dee3d02f5c9e890abaebe62e1982164764c87')
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}"
- FAUDIO_RELEASE=1 FAUDIO_FFMPEG=1 make
+ 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}"
+ 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}"
}