updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / qle / PKGBUILD
blob4602b907416c3ac9c25aa27e59c2633f4db72e97
1 # WB2FKO <mph at sportscliche dot com>
2 pkgname=qle
3 pkgver=0.0.26
4 pkgrel=1
5 pkgdesc="QSO logger and log editor"
6 arch=('any')
7 url="http://home.kpn.nl/w.knol18/qle/qle.html"
8 license=('GPL' 'PerlArtistic')
9 depends=('perl>=5.10.0' 'perl-tk' 'sqlite3' 'sqlite3-doc' 'perl-pdf-labels' 'perl-pdf-create' 'perl-dbd-sqlite' 
10 'perl-dbi' 'perl-config-general')
11 optdepends=('hamlib: rig interfacing'
12                        'cwdaemon: transmitting cw')
13 options=(!emptydirs)
14 source=(http://home.kpn.nl/w.knol18/qle/$pkgname-$pkgver.tar.gz
15               $pkgname.desktop
16                $pkgname.png)
17 md5sums=('ff894981cbb9319be886075ca21ff131'
18          '1a8776642a3733ca645d908eda113d37'
19          '5b60b0fe52cb3ca0fab0cfe87a5f0c8a')
20 build() {
21 # All files will be copied to /opt
22   mkdir -p $pkgdir/opt/$pkgname
23   cd "$srcdir/$pkgname-$pkgver/"
24 # The following line identifies the install location to the script and
25 # allows the program to be started with a menu entry.  If the program
26 # directory gets copied to another location (such as the home 
27 # directory) this line must be modified accordingly.  QLE can always be
28 # launched from the command line with ./qle.sh as described in README
29   sed -i '20 a cd /opt/qle' qle.sh
30   cp -ra $srcdir/$pkgname-$pkgver/*.* $pkgdir/opt/$pkgname/
31   cp -ra $srcdir/$pkgname-$pkgver/*   $pkgdir/opt/$pkgname/
34 package() {
35   chown -R $USER:  $pkgdir/opt/$pkgname
36   find "$pkgdir/opt/$pkgname/" -type f | xargs chmod 755
37   cd "$srcdir"
38   mkdir -p $pkgdir/usr/share/pixmaps
39   mkdir -p $pkgdir/usr/share/applications
40   install -Dm644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
41   install -Dm644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
42   echo -e "\n qle is installed in the /opt directory of root \n"
45 # vim:set ts=2 sw=2 et: