summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5943ea02591b625c523408bb7acf8e334b4b60a6 (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
# Maintainer: f4iey <f4iey@f6kgl.ampr.org>

pkgname=easymorse-git
pkgver=r38.b8748c3
pkgrel=2
pkgdesc="Simple crossplatform tool to learn morse code or automatic traffic on CW"
arch=(x86_64)
url="https://bitbucket.org/Artemia/easymorse"
license=(GPL3)
depends=(qt6-base qt6-multimedia qt6-serialport)
makedepends=(git qt6-tools)
provides=(easymorse)
conflicts=(easymorse)
source=("git+$url.git")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/easymorse"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build(){
    cd "$srcdir/easymorse"
    qmake6 CONFIG+=release
    make
}

package() {
    cd "$srcdir/easymorse"
    make install INSTALL_ROOT="${pkgdir}/"
    rm -r "$pkgdir/opt"

    #bug: translation is not installed but happen running makepkg twice without cleaning the cache
    install -D translations/* -t "${pkgdir}/usr/share/easymorse/translations/"
}