summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ad0bcf422029c01b6c2fdfe13c377863ba2b47bd (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
# Maintainer: katt <magunasu.b97@gmail.com>

pkgname=libopenaptx-git
pkgver=0.2.0.r1.g99b0921
pkgrel=1
pkgdesc='Open Source implementation of Audio Processing Technology codec (aptX)'
arch=('x86_64')
url="https://github.com/pali/libopenaptx"
license=('LGPL2.1')
depends=('glibc')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+${url}.git")
sha512sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$pkgname"
	make
}

package() {
	cd "$pkgname"
	make PREFIX=/usr DESTDIR="$pkgdir" install
}