db-move: moved epiphany from [testing] to [extra] (x86_64)
[arch-packages.git] / libopenaptx / trunk / PKGBUILD
blobd16a9d0e427c9e16233275b493d295c7bba81cef
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=libopenaptx
4 pkgver=0.2.0
5 pkgrel=1
6 pkgdesc="Open Source aptX codec library"
7 url="https://github.com/pali/libopenaptx"
8 arch=(x86_64)
9 license=(LGPL)
10 depends=(glibc)
11 makedepends=(git)
12 provides=(libopenaptx.so)
13 _commit=2459ed4686eaef0a19dfa3f330a960813c5f60de  # tags/0.2.0^0
14 source=("git+$url#commit=$_commit")
15 sha256sums=('SKIP')
17 # Do not upgrade to 0.2.1; hostile license change.
18 # See https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/d08b6fac6bec0d334ee9fc785d551a67832f95fe
19 [[ $pkgver == 0.2.0 ]] || exit 1
21 pkgver() {
22   cd $pkgname
23   git describe --tags | sed 's/-/+/g'
26 prepare() {
27   cd $pkgname
30 _make() {
31   make CPPFLAGS="$CPPFLAGS" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
32     PREFIX=/usr "$@"
35 build() {
36   cd $pkgname
37   _make
40 package() {
41   cd $pkgname
42   _make DESTDIR="$pkgdir" install