You are not logged in.

#1 2008-05-04 20:30:26

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[Request] Chord - guitar tab utility

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

#2 2008-05-06 22:18:16

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: [Request] Chord - guitar tab utility

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

#3 2008-05-08 11:49:39

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Request] Chord - guitar tab utility

Many thanks ghostHack - works superbly.

Offline

Board footer

Powered by FluxBB