summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15c5cb2f94cffeda2190d39cea3d2c10d9bf97f7 (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: Bruce Zhang <zttt183525594@gmail.com>

pkgname=openaptx-git
_pkgname=openaptx
pkgver=r22.32f01e5
pkgrel=1
pkgdesc="reverse-engineered apt-X"
arch=('x86_64')
url="https://github.com/Arkq/openaptx"
license=('MIT')
depends=()
makedepends=('git')
provides=('openaptx')
conflicts=()
replaces=()
backup=()
options=()
install=
source=('git://github.com/Arkq/openaptx.git')
md5sums=('SKIP')

pkgver() {
	cd "$srcdir/openaptx"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/openaptx"
	libtoolize
	aclocal
	autoconf
	autoheader
	automake --add-missing
	./configure --prefix=/usr
	make
}

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