You are not logged in.
I found myself in need of a software package that were not in the repos nor in aur, but instead of
just compile and be done with it I made it into a package, as practice.
There are some issues that made it harder to package, for me:
The source archive is a tarbomb, the template PKGBUILD recommends cd $srcdir/$pkgname-$pkgver
and I assume it should be created by the source package? ...anyway it is not created in this instance.
The makefile has no install option, copying has to be done by hand.
There are some files provided for the user's benefit that do not fall into the bin/conf/doc categories (I put them in /usr/share/$pkgname)
I've tried to adhere to the building standards etc, but in the above cases I am not sure I've made the correct choices,
(in some cases the documentation was for cases not similar enough for this package, in some it was unclear if the statement was a suggestion
or a requirement)
The package is quite specialized, so I doubt I'll submit it to aur, but input would be welcome anyway.
# Maintainer: Leo Bärring <leo.barring@gmail.com>
pkgname=lifutils
pkgver=1.4
pkgrel=1
pkgdesc="LIF Utilities"
arch=(any)
url="http://www.hpcc.org/datafile/hpil/lif_utils.html"
license=('GPL')
depends=(glibc)
source=('http://www.hpcc.org/datafile/hpil/lifutils.tar.gz')
md5sums=('c70ecf3f059e10333c8d79ec8bea14bd')
build() {
cd $srcdir
make
}
package() {
cd $srcdir
install -dm755 $pkgdir/usr/{bin,share/{$pkgname/{hardware,xroms},man/man{1,5}}}
install -m755 -t $pkgdir/usr/bin \
lifimage lifdump lifdir lifget lifaddhdr lifrmhdr \
hptext sdata prog41 text75 regs41 stat41 key41 outp41\
inp41 wall41 wcat41 in71 out71 lifstat sdatabar \
barprt barps rom41 rom41cat prog41bar
install -m644 hardware/* $pkgdir/usr/share/$pkgname/hardware
install -m644 xroms/* $pkgdir/usr/share/$pkgname/xroms
install -m644 manpages/*.1 $pkgdir/usr/share/man/man1
install -m644 manpages/*.5 $pkgdir/usr/share/man/man5
}Last edited by tlvb (2011-01-30 06:58:07)
I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.
Offline
No need to gzip manpages. makepkg does that for you automatically. Also, you should use "install" rather than mkdir and cp as this ensures the correct permissions.
Online
[...editing...]
Done and done. PKGBUILD above updated.
I thought I should be able to use the -D flag to create the directories on the go as the files were copied, but no cigar.
I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.
Offline