summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a152f668a34ab9f53a6fd461a61f9d765ae2478 (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
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
_pkgname=sonic
pkgname=libsonic-git
pkgver=1
pkgrel=1
pkgdesc="Simple library to speed up or slow down speech"
arch=('any')
url="https://github.com/waywardgeek/sonic"
license=('Apache 2.0')
depends=('gcc')
makedepends=('git')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+https://github.com/waywardgeek/${_pkgname}.git")
md5sums=("SKIP")

pkgver()
{
  cd "$_pkgname"
  git shortlog | head -n 1 | tr -Cd "[:digit:]"
}
 
# Temp fix for espeak-ng compatability.
prepare() {
  cd "$_pkgname"
  sed -i 's/\(.*$(SONAME).*\)/\1 $(FFTLIB)/' Makefile
}

build()
{
cd "$_pkgname"
make
}

package()
 {
cd "$_pkgname"
make DESTDIR="$pkgdir/" install
  }

# vim:set ts=2 sw=2 et: