You are not logged in.
Hi - could someone produce a PKGBUILD for the guitar tab utility called Chord available at:
http://wiki.kazur.dk/doku.php?id=projects:chordpro
Suitable tabs for use with this can be found at http://www.ultimate-guitar.com/ (and elsewhere).
Thanks.
Offline
Try this, there are a lot of seds because I've had to basically re-write the 'install' stanza of the makefile to use DESTDIR as theres no ./configure script.
The only real problem is that the download link is to a php script and while makepkg will successfully download the file it cannot perform a successful 'stat' on the resulting file due to special characters (I presume) so you will have to download the source manually unless someone else knows how to fix this problem.
pkgname=chord
pkgver=3.6.2
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc="A utility to provide guitar players with a tool to produce good looking, self-descriptive music sheet from a text file"
url="http://wiki.kazur.dk/doku.php?id=projects:chordpro"
license="GPL"
source=("chord.tgz")
#source=(http://wiki.kazur.dk/lib/exe/fetch.php?id=projects%3Achordpro&cache=cache&media=projects:chord.tgz)
md5sums=('f39a31b5e1ad93ae530bb5ba491a9913')
build() {
cd $srcdir/$pkgname
# make changes to Makefile in leu of a ./configure
sed -i 's@BINDIR = /home/embla8/krogh/bin/hp9000s300@BINDIR = /usr/bin@' Makefile
sed -i 's@MANDIR = home/embla8/krogh/chords@MANDIR = /usr/share/man@' Makefile
# edit install stanza
sed -i 's@cp $(PROGRAMS) $(BINDIR)@install -m 755 -d $(DESTDIR)$(BINDIR)@' Makefile
sed -i 's@rm -f $(MANDIR)/cat$(MANEXT)/chord.$(MANEXT)@install -t $(DESTDIR)$(BINDIR) $(PROGRAMS)@' Makefile
sed -i 's@chmod 666 $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)@install -m 755 -d $(DESTDIR)$(MANDIR)/man$(MANEXT)@' Makefile
sed -i 's@cp chord.man $(MANDIR)/man$(MANEXT)/chord.$(MANEXT)@install -m 666 -D chord.man $(DESTDIR)$(MANDIR)/man$(MANEXT)/chord.$(MANEXT)@' Makefile
sed -i 's@cp a2crd.man $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)@install -m 666 -D a2crd.man $(DESTDIR)$(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)@' Makefile
sed -i 's@chmod 666 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)@#chmod 666 $(MANDIR)/man$(MANEXT)/a2crd.$(MANEXT)@' Makefile
make || return 1
make DESTDIR=$pkgdir install
}
Offline
Many thanks ghostHack - works superbly.
Offline