blob: fa538f40c536f861557b120caa5ff8cd21a0b4a1 (
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
|
# Maintainer: Storm Dragon <stormdragon2976@gmail.com>
_pkgname=sonic
pkgname=libsonic-git
pkgver=0.2.0_53+r182.20180706.71c5119
pkgrel=1
pkgdesc="Simple library to speed up or slow down speech"
arch=('aarch64' 'armv7h' 'x86_64')
url="https://github.com/waywardgeek/sonic"
license=('Apache')
depends=('gcc')
makedepends=('git' 'fftw')
provides=("libsonic=${pkgver}")
conflicts=('libsonic')
source=("git+https://github.com/waywardgeek/${_pkgname}.git")
md5sums=("SKIP")
pkgver() {
cd "${srcdir}/${_pkgname}"
_ver="$(git describe --tags | sed -E 's|[a-zA-Z]+\-||g' | sed -E 's|[\-]g[0-9a-fa-f]+||g' | sed 's|^v||' | tr '-' '_')"
_rev="$(git rev-list --count HEAD)"
_hash="$(git rev-parse --short HEAD)"
_date="$(git log -n 1 --format=tformat:%ci | awk '{print $1}' | tr -d '-')"
if [ -n "${_ver}" ]; then
printf %s "${_ver}+r${_rev}.${_date}.${_hash}"
fi
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|