1 # Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
6 pkgdesc="CW tutor and generator program suite"
8 url="ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/!INDEX.html"
11 makedepends=('pkgconfig')
12 source=(ftp://metalab.unc.edu/pub/Linux/apps/ham/morse/$pkgname-$pkgver.tgz
13 $pkgname $pkgname.desktop $pkgname.png)
16 cd $srcdir/$pkgname-$pkgver
18 # if ! [ -e /opt/qt/lib/libqt.so ]; then
19 # touch $startdir/tada
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
28 ./configure --prefix=/usr
30 sed -i -e "s:lqt:lqt-mt:" $srcdir/$pkgname-$pkgver/src/xcwcp/Makefile
32 # make all || return 1
34 make prefix=$pkgdir/usr install
36 # rm -r /tmp/unixcw_qt/
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 &&
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
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
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')