updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / cutecw / PKGBUILD
blob84bc3173e7e1f7ec87dc98c62356da4b5729a37d
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=cutecw
4 pkgver=1.0
5 pkgrel=1
6 pkgdesc="Learning morse code is hard; this software breaks it into phases to make learning easier."
7 arch=(i686 x86_64)
8 url="http://www.hamtools.org/cutecw/"
9 license=('GPL')
10 depends=('qt' 'hicolor-icon-theme')
11 install="$pkgname.install"
12 source=("${url}releases/${pkgname}-${pkgver}.tar.gz")
13 md5sums=('b0ddf2637d27b00253501693dcd2f6a5')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   # Prefix fix
19   sed -i "s|/local||" $pkgname.pro
21   # Build
22   qmake PREFIX=/usr
23   make
26 package() {
27   cd "$srcdir/$pkgname-$pkgver"
29   # Desktop file fix
30   sed -i "s|/opt||;s|X-Win.*|Categories=Education;|" $pkgname.desktop
32   make INSTALL_ROOT="$pkgdir/" install
35 # vim:set ts=2 sw=2 et: