summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d745dd4b0367c238cde3cf7997ce13b32f86a58b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: not_anonymous <nmlibertarian@gmail.com>
# Contributor: Johann Klähn <kljohann@gmail.com>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
# Contributor: Ward De Ridder <aur[at]warddr.eu>

pkgname=kochmorse
_author=hmatuschek
pkgver=3.4.0
pkgrel=1
pkgdesc="A easy to use Morse Code (Ham Radio) trainer using the Koch-method."
arch=('i686' 'x86_64')
url="https://github.com/$_author/$pkgname"
license=('GPL')
depends=('qt5-multimedia' 'hamradio-menus')
makedepends=('cmake')
optdepends=('hamradio-menus: XDG compliant menuing')
provides=('kochmorse')
conflicts=('kochmorse-py' 'kochmorse-git')
source=($url/archive/v$pkgver.tar.gz)

prepare() {
	cd "$srcdir/$pkgname-$pkgver"
	msg "Preparing sources..."

	sed -i -e s:'Teaching;':'Application;HamRadio': shared/$pkgname.desktop
	sed -i '$ a X-DCOP-ServiceType=none' shared/$pkgname.desktop
	sed -i '$ a X-KDE-SubstituteUID=false' shared/$pkgname.desktop
}	
build() {
	cd "$srcdir/$pkgname-$pkgver"
	msg "Starting build..."

	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DPORTAUDIO_INCLUDE_DIRS=/usr/include
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	msg "Starting packaging..."

	make DESTDIR="$pkgdir/" install
}

md5sums=('f9db3fea93146bfbfe8bcf8e18557b0b')
sha256sums=('5ef4fb42e04a420493dd0977d63d8902e7192481fee0cbdd57857bd1b196c61b')