You are not logged in.

#1 2005-02-11 08:10:16

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

[x11:burner] HacBurn

HacBurn is a script written in perl to aid in writing CDs. It is a graphical interface (using gtk+) to cdrtools, mpg321 and ogg123.

Screenie of hacburn in action (which is not very action)

I want to pkg it as i like supporting little things that do a lot - the things is what is the best way to set it up?

Here is  first effort:

# dibblethewrecker
pkgname=HacBurn
pkgver=0.2
pkgrel=1
url="http://hacburn.sourceforge.net/"
pkgdesc="HacBurn is a script written in perl to aid in writing CDs. It is a graphical interface (using gtk+) to cdrtools, mpg321 and ogg123."

depends=('gtk2-perl' 'glib-perl' 'cdrtools' 'mpg321' 'vorbis-tools' 'gtk2' 'x-server')
source=(http://unc.dl.sourceforge.net/sourceforge/hacburn/$pkgname-$pkgver.tar.bz2)

build() {
  mkdir -p $startdir/pkg/usr/bin/
  install -m 755 $startdir/src/$pkgname-$pkgver/hacburn.pl 
  $startdir/pkg/usr/bin/hacburn.pl
}

.:EDIT:. you can ignoe the bit below here - i made my decision smile

is this the best way to pkg a script tho?  There are loads of apps that feature bash scripts which are simply treated as bins and don't have a .sh extention.  In this fashion would it be better to do:

build() {
  mkdir -p $startdir/pkg/usr/{bin,share}
  install -m 755 $startdir/src/$pkgname-$pkgver/hacburn.pl 
  $startdir/pkg/usr/share/hacburn.pl
  ln -s $startdir/pkg/usr/share/hacburn.pl $startdir/pkg/usr/bin/hacburn
}

i think the first is better but it is the first time I have come across this smile

Offline

#2 2005-02-13 14:05:57

MaceM
Member
From: Austria
Registered: 2003-11-26
Posts: 47

Re: [x11:burner] HacBurn

i just tried it, looks nice.
and found out it depends on glib-perl aswell.

Offline

#3 2005-02-14 08:57:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: [x11:burner] HacBurn

nice one - i have no internet connection at the mo so my Arch life revolves around USB pens, internet cafes and patience

I also just managed to discover the last dependency smile

Based on my research as well i will leave the PKGBUILD as is i.e. install hacburn.pl to /usr/bin smile

I'll pop this sucker in my repo too big_smile

Offline

Board footer

Powered by FluxBB