summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57dd033b26b51871efed3321d406a7ae60e81ded (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=soundtouch-git
pkgver=2.3.1.r13.gca05925
pkgrel=1
pkgdesc="Audio tempo/pitch control library"
arch=('i686' 'x86_64')
url="https://www.surina.net/soundtouch/"
license=('LGPL')
depends=('gcc-libs')
makedepends=('git')
provides=("soundtouch=$pkgver")
conflicts=('soundtouch')
source=("git+https://gitlab.com/soundtouch/soundtouch.git")
sha256sums=('SKIP')


pkgver() {
  cd "soundtouch"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "soundtouch"

  ./bootstrap
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "soundtouch"

  make DESTDIR="$pkgdir" install

  rm "$pkgdir/usr/share/doc/soundtouch/COPYING.TXT"
}