summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChocobo12017-08-12 19:54:23 +0800
committerChocobo12017-08-12 20:04:17 +0800
commitc727c771be624f221ed96630d8da0c178bda54cc (patch)
tree32e42cf22157573e83300319387cff7e10572591 /PKGBUILD
downloadaur-c727c771be624f221ed96630d8da0c178bda54cc.tar.gz
newpkg: libsndfile-git 1.0.28.r74.gbeee21e5-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ae123f91445
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
+
+pkgname=libsndfile-git
+pkgver=1.0.28.r74.gbeee21e5
+pkgrel=1
+pkgdesc="C library for reading and writing files containing sampled sound"
+arch=('i686' 'x86_64')
+url="http://www.mega-nerd.com/libsndfile/"
+license=('LGPL')
+depends=('glibc' 'alsa-lib' 'flac' 'libogg' 'libvorbis')
+makedepends=('git' 'autogen')
+provides=('libsndfile')
+conflicts=('libsndfile')
+source=("git+https://github.com/erikd/libsndfile.git")
+sha256sums=('SKIP')
+
+
+pkgver() {
+ cd "libsndfile"
+
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "libsndfile"
+
+ ./autogen.sh
+ ./configure --prefix="/usr" --disable-sqlite
+ make
+}
+
+check() {
+ cd "libsndfile"
+
+ make check
+}
+
+package() {
+ cd "libsndfile"
+
+ make DESTDIR="$pkgdir" install
+}