summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlbert Graef2015-06-13 22:59:04 +0200
committerAlbert Graef2015-06-13 22:59:04 +0200
commit815c6e586db9f65614681185de876b79a2d6ad1d (patch)
tree8e846f8a7de3c8c6ec213a303b232c9350ec924d /PKGBUILD
downloadaur-815c6e586db9f65614681185de876b79a2d6ad1d.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD78
1 files changed, 78 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..96b69645ae00
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,78 @@
+# Maintainer: Albert Graef <aggraef at gmail.com>
+# Contributor: Bernardo Barros <bernardobarros at gmail dot com>
+# Contributor: bjoern lindig (bjoern _dot_ lindig _at_ google.com)
+
+pkgname=faust-git
+pkgver=3449.0bbe67e
+pkgrel=1
+pkgdesc="A functional programming language for realtime audio signal processing."
+arch=('i686' 'x86_64')
+url="http://faust.grame.fr/"
+license=('GPL')
+depends=('ruby'
+# needed for sound2faust:
+ 'libsndfile'
+# needed for libHTTPDFaust:
+ 'libmicrohttpd' 'openssl')
+# We need xxd at build time, which is provided by 'gvim', 'vim' and 'xxd'
+# (AUR). Unfortunately, these all conflict with each other, and pacman doesn't
+# provide for alternative dependencies. Most users will presumably have 'gvim'
+# installed, so that's the one we go with, but you can replace that with either
+# 'vim' or 'xxd' if you prefer.
+makedepends=('git' 'gvim')
+provides=('faust')
+conflicts=('faust')
+# This keeps the static libraries. Remove the 'staticlibs' option if this
+# isn't wanted.
+options=('strip' 'staticlibs')
+source=("$pkgname::git+git://git.code.sf.net/p/faudiostream/code"
+ "git+https://github.com/rukano/emacs-faust-mode.git")
+md5sums=('SKIP' 'SKIP')
+
+pkgver() {
+ cd $srcdir/$pkgname
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+# NOTE: libHTTPDFaust requires 'liblo', 'libmicrohttpd' and 'openssl'.
+# Similarly, sound2faust requires libsndfile which we also include by default.
+# These are all optional, so you can get rid of the extra dependencies by
+# changing the build target from 'world' to 'all' and removing the
+# corresponding dependencies above.
+
+build() {
+ cd $srcdir/$pkgname
+ make PREFIX=/usr world
+}
+
+package() {
+ cd $srcdir/$pkgname
+ make install PREFIX=/usr DESTDIR="$pkgdir"
+
+ # docs
+ install -d "$pkgdir/usr/share/doc/faust"
+ install -Dm644 documentation/*.{pdf,txt} "$pkgdir/usr/share/doc/faust"
+
+ # examples
+ install -d "$pkgdir/usr/share/faust/examples"
+ cp -R "examples/"* "$pkgdir/usr/share/faust/examples/"
+
+ ## syntax highlighting files
+ cd syntax-highlighting
+
+ # kate
+ install -Dm644 faust.xml "$pkgdir/usr/share/apps/katepart/syntax/faust.xml"
+ # gedit
+ install -Dm644 faust.lang "$pkgdir/usr/share/gtksourceview-2.0/language-specs/faust.lang"
+ install -Dm644 faust.lang "$pkgdir/usr/share/gtksourceview-3.0/language-specs/faust.lang"
+
+ # highlight
+ install -Dm644 dsp.lang "$pkgdir/usr/share/highlight/langDefs/dsp.lang"
+
+ # vim
+ install -Dm644 faust.vim "$pkgdir/usr/share/vim/vimfiles/syntax/faust.vim"
+
+ # emacs
+ install -d "$pkgdir/usr/share/emacs/site-lisp/"
+ install -Dm644 "$srcdir/emacs-faust-mode/faust-mode.el" "$pkgdir/usr/share/emacs/site-lisp/"
+}