-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ae1279
commit 1c850e5
Showing
1 changed file
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/" | ||
} |