summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12017-08-12 19:54:23 +0800
committerChocobo12017-08-12 20:04:17 +0800
commitc727c771be624f221ed96630d8da0c178bda54cc (patch)
tree32e42cf22157573e83300319387cff7e10572591
downloadaur-c727c771be624f221ed96630d8da0c178bda54cc.tar.gz
newpkg: libsndfile-git 1.0.28.r74.gbeee21e5-1
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD42
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9572661de20
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = libsndfile-git
+ pkgdesc = C library for reading and writing files containing sampled sound
+ pkgver = 1.0.28.r74.gbeee21e5
+ pkgrel = 1
+ url = http://www.mega-nerd.com/libsndfile/
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = git
+ makedepends = autogen
+ depends = glibc
+ depends = alsa-lib
+ depends = flac
+ depends = libogg
+ depends = libvorbis
+ provides = libsndfile
+ conflicts = libsndfile
+ source = git+https://github.com/erikd/libsndfile.git
+ sha256sums = SKIP
+
+pkgname = libsndfile-git
+
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
+}