blob: 4cebcb07f2107c5b9764a132ed6bda26344dd5d9 (
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
40
41
42
43
44
|
# Maintainer: Jingbei Li <i@jingbei.li>
pkgname=phonetisaurus-git
pkgver=r163.2831870
pkgrel=1
pkgdesc="WFST-driven grapheme-to-phoneme (g2p) framework suitable for rapid development of high quality g2p or p2g systems."
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h')
url="https://github.com/AdolfVonKleist/Phonetisaurus"
license=('BSD')
depends=('openfst' 'python')
makedepends=('python-pybindgen' 'python-setuptools' 'git')
source=("git+https://github.com/AdolfVonKleist/Phonetisaurus.git")
sha256sums=('SKIP')
provides=('phonetisaurus')
conflicts=('phonetisaurus')
pkgver() {
cd "$srcdir/Phonetisaurus"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/Phonetisaurus"
sed '41ausing namespace std;' -i src/include/util.h
#sed '/MapToken/s/string&/std::string&/g' -i src/include/util.h
}
build() {
cd "$srcdir/Phonetisaurus"
PYTHON=/usr/bin/python ./configure \
--prefix=/usr \
--enable-python
make
}
package() {
cd "$srcdir/Phonetisaurus/python"
cp ../.libs/Phonetisaurus.so .
python setup.py install --root="$pkgdir"/ --optimize=1
cd "$srcdir/Phonetisaurus"
make DESTDIR=${pkgdir} install
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|