1 # Maintainer: orbisvicis <''.join(chr(ord(c)-1) for c in "pscjtwjdjtAhnbjm/dpn")>
2 # Contributor: Robert Schwarz <mail@rschwarz.net>
4 pkgname=non-sequencer-git
8 pkgdesc="a powerful real-time, pattern-based MIDI sequencer"
10 url="http://${_pkg}.tuxfamily.org/"
12 depends=("fltk>=1.1.7" "libsigc++2.0" "jack" "lash")
19 _gitroot="git://git.tuxfamily.org/gitroot/non/sequencer.git"
23 local _gitdir="${srcdir}/${_gitname}"
24 msg "Connecting to GIT server...."
26 if [[ -d "$_gitdir" ]]; then
27 cd "$_gitdir" && git pull origin
28 msg "The local files are updated."
30 git clone "$_gitroot" "$_gitdir"
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
40 # fix case of fltk include location
41 find . -type f -iname '*.fl' -execdir sed -i -e 's|#include <Fl/\(.*\)>|#include <FL/\1>|' '{}' \;
43 # fix fluid fltk generation of empty constructor
45 awk '{ m="Function {Trigger( int X, int Y, int W, int H, const char *L = 0 ) : Fl_Dial( X, Y, W, H, L )}";
47 if (index($0,m) != 0 ) {
48 getline; sub(/{}/,"{ code {} {} }",$0); print $0;
55 sed -i -e 's/$(CXX) $(CXXFLAGS) $(LIBS) $(OBJS) .version.o/$(CXX) $(CXXFLAGS) $(OBJS) .version.o $(LIBS)/' Makefile
58 ./configure --prefix=/usr --enable-lash
63 local _gitdir="${srcdir}/${_gitname}"
66 make DESTDIR="$pkgdir" install
69 # vim:set ts=2 sw=2 et: