updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / unixcw / PKGBUILD
blob5ca7452a1d396e5fa5115e291d5152da9f23030a
1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
3 pkgname=unixcw
4 pkgver=2.3
5 pkgrel=3
6 pkgdesc="CW tutor and generator program suite"
7 arch=('i686' 'x86_64')
8 url="ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/!INDEX.html"
9 license=('GPL')
10 depends=('qt3')
11 makedepends=('pkgconfig')
12 source=(ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/$pkgname-$pkgver.tgz
13         $pkgname $pkgname.desktop $pkgname.png)
15 build() {
16         cd $srcdir/$pkgname-$pkgver
17         
18         # if ! [ -e /opt/qt/lib/libqt.so ]; then
19                 # touch $startdir/tada
20         # fi
21                    
22         # mkdir  /tmp/unixcw_qt
23         # ln  -s /opt/qt/include     /tmp/unixcw_qt/include
24         # ln  -s /opt/qt/bin         /tmp/unixcw_qt/bin
25         # ln  -s /opt/qt/lib         /tmp/unixcw_qt/lib
26         # export QTDIR=/tmp/unixcw_qt
27                                          
28         ./configure --prefix=/usr
29                                         
30         sed -i -e "s:lqt:lqt-mt:" $srcdir/$pkgname-$pkgver/src/xcwcp/Makefile
31                                            
32         # make all || return 1
33         make || return 1
34         make prefix=$pkgdir/usr install
35                                                    
36         # rm -r /tmp/unixcw_qt/
37                                                          
38         # if [ -e $startdir/tada ]; then
39                 # mkdir -p $pkgdir/opt/qt/lib &&
40                 # cd $pkgdir/opt/qt/lib &&
41                 # ln -sf libqt-mt.so libqt.so &&
42                 # rm $startdir/tada
43         # fi
44                                                                                                          
45         cd $pkgdir/usr/man/man1
46         ln -sf xcwcp.1.gz unixcw.1.gz
47         mkdir -p $pkgdir/usr/share/man
48         mv $pkgdir/usr/man $pkgdir/usr/share
49                                                                                                                            
50         cd $srcdir
51         install -D -m755 $pkgname $pkgdir/usr/bin/$pkgname
52         install -D -m644 $pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
53         install -D -m644 $pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
54 }                                                  
55 # earlier versions of unixcw MUST BE removed prior to compilation
56 md5sums=('f02e81ab719caa039c85615331c8860b'
57          '3f6168a6c81c550dc78006202f959db3'
58          'c910885403df79061793fbceb047ca47'
59          'f7f81dcf7a1bba55bf8cde70d59d8ed5')
60 sha256sums=('124c60c6c7ef596a7c96c94a0e76204c7d986373564121155f0f206ad71f30a0'
61             'f23fdc2c7346abd26b8acc8961eff599f08e6905a6cef2b0e402d86c6a9a1714'
62             '4c7baa9af46d3cc109fd988614a1b6064e68455a1ab1d58e1ed42d10e3b21161'
63             'be1d10724873ae84fec6f580792e5ce9fe2dbfc3e75e2bde14f6893391a63ff1')