Skip to content

Commit

Permalink
Update easymorse-git
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLolix committed Jun 13, 2022
1 parent 0ae1279 commit 1c850e5
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions e/easymorse-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
# Maintainer: f4iey <f4iey@f6kgl.ampr.org>

pkgname=easymorse-git
pkgver=b8748c3
pkgver=r38.b8748c3
pkgrel=1
pkgdesc="Simple crossplatform tool to learn morse code or automatic traffic on CW"
arch=('any')
license=('GPL3')
makedepends=('make' 'gcc' 'qt6-multimedia' 'qt6-serialport')
depends=('qt6-base')
provides=('easymorse')
conflicts=('easymorse' 'qt5-base')
arch=(x86_64)
url="https://bitbucket.org/Artemia/easymorse"
source=($pkgname::"git+$url.git")
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/$pkgname
qmake CONFIG+=release
make -j3
cd "$srcdir/easymorse"
qmake6 CONFIG+=release
make
}

package() {
cd $srcdir
install -dm755 $pkgdir/usr/bin
install -dm755 $pkgdir/opt/$pkgname
cp -r $pkgname/* $pkgdir/opt/$pkgname
cd $pkgdir/usr/bin
ln -s ../../opt/$pkgname/easymorse ./easymorse
echo -e "Done!\nAll the source files are located in /opt/$pkgname!"
}
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/"
}

0 comments on commit 1c850e5

Please sign in to comment.