summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22a4d79d1688934b43f564d2d09fc1237308c1e3 (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

# Maintainer: Asuka Minato <asukaminato at nyan dot eu dot org>
# Contributor: Asuka Minato
pkgname=ggmorse-git
pkgver=r58.55b4aad
pkgrel=1
pkgdesc="Morse code decoding library"
arch=(any)
url="https://github.com/ggerganov/ggmorse"
license=('MIT')
depends=(sdl2)
makedepends=(git cmake)
provides=(ggmorse-from-file  ggmorse-gui  ggmorse-to-file)
source=("git+https://github.com/ggerganov/ggmorse")
sha256sums=('SKIP')

pkgver() {
  cd "ggmorse"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
	pushd "ggmorse"
	git submodule init
	git submodule update
}

build() {
	pushd "ggmorse"
	mkdir build && pushd build
	cmake ..
	make
}

package() {
	pushd "ggmorse"
	install -Dm755 ./build/bin/ggmorse* -t $pkgdir/usr/bin/
	install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname/
}