blob: 71fc33ef6e6329392d3ed394da9230f8b800fe2a (
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
|
# Maintainer: Anakojm <https://anakojm.net/about.html>
pkgname=words-tok
_pkgname=stardict-tok-eng
pkgver=r1.1a94664
pkgrel=1
pkgdesc='wordlist of toki pona words for /usr/share/dict/'
arch=(any)
url="https://git.sr.ht/~anakojm/$_pkgname"
license=('CC-BY-SA-3.0' 'CC-BY-SA-4.0')
makedepends=('git')
source=("git+$url")
sha256sums=("SKIP")
pkgver(){
cd "$srcdir/$_pkgname"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
package(){
cd "$srcdir/$_pkgname"
mkdir -p ${pkgdir}/usr/share/dict/
awk '{print $1}' toki-pona > "${pkgdir}/usr/share/dict/toki-pona"
}
|