summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3da38f9f52ae9928d8e6c7c2272f4c544168e8d (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
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Carlo Capocasa <carlo@capocasa.net>
pkgname=nanotts-git
pkgver=r46.2370600
pkgrel=1
epoch=
pkgdesc="The nanotts speech synthesizer (git version)"
arch=(x86_64)
url="https://github.com/gmn/nanotts"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
"$pkgname::git+https://github.com/gmn/nanotts.git#branch=master"
)
noextract=()
md5sums=(
"SKIP"
)
validpgpkeys=()

prepare() {
	cd "$pkgname"
  sed -i "s#/usr/share/pico/lang#/usr/share/$pkgname/lang#" Makefile
}

build() {
	cd "$pkgname"
	make
}

check() {
	cd "$pkgname"
}

package() {
  mkdir -p "$pkgdir/usr/bin"
  cp "$pkgname/nanotts" "$pkgdir/usr/bin/$pkgname"
  mkdir -p "$pkgdir/usr/share/$pkgname"
  cp -R "$pkgname/lang" "$pkgdir/usr/share/$pkgname" 
}

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