blob: 19e87d0c0407ac3e799768ba4c1646aa49d0653d (
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
|
# Maintainer: Abrer <ahbrer@gmail.com>
pkgname='dkoch-git'
pkgver=8.10ba713
pkgrel=1
arch=('any')
url="https://gitlab.com/big-friendian/dkoch"
license=('MIT')
pkgdesc="A program for learning morse code using the Koch and/or Farnsworth methods."
depends=( "dmd"
"dub"
"sdl2" )
source=("$pkgname"::'git+https://gitlab.com/big-friendian/dkoch.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$pkgname"
dub build --build=release
}
package() {
cd "$pkgname"
mkdir -p $pkgdir/usr/bin/
cp dkoch $pkgdir/usr/bin/
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|