blob: 6c9647107c6db2c2fbbd9bb91c7842caa7484975 (
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
|
# Maintainer: David Bailey <david.bailey@archlinux.net>
pkgname=tegaki-recognize
pkgver=0.3.1.2
pkgrel=4
pkgdesc="Chinese and Japanese Handwriting Recognition program"
arch=('any')
url="http://www.tegaki.org/"
license=('GPL2')
depends=('tegaki-pygtk>=0.2')
makedepends=('python2')
optdepends=('tegaki-models-wagomu-japanese' 'tegaki-models-zinnia-japanese' 'tegaki-models-wagomu-simplified-chinese' 'tegaki-models-zinnia-simplified-chinese' 'tegaki-models-zinnia-traditional-chinese' 'tegaki-train' 'tegaki-tools')
source=("https://github.com/tegaki/tegaki/releases/download/v0.3.1/$pkgname-$pkgver.tar.gz")
md5sums=('c9f09bccd6f621908c666d54cbe01805')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's/\@PREFIX/\/usr/' tegaki-recognize.desktop.in
}
build() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python2 setup.py install --prefix=$pkgdir/usr --optimize=1
sed -i -e "s|$pkgdir||" $pkgdir/usr/share/menu/tegaki-recognize
}
|