summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3b74570052badd163340b7dcbba531d9c8713a00 (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
# Maintainer: aksr <aksr at t-com dot me>
pkgname=xplayargs-git
pkgver=r1.d4711c7
pkgrel=2
pkgdesc='A xargs-like audio player.'
arch=('i686' 'x86_64')
url='https://github.com/dimkr/xplayargs'
license=('MIT')
makedepends=('git')
conflicts=('xplayargs')
source=("$pkgname::git+$url")
md5sums=('SKIP')

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

prepare() {
	cd "$srcdir/$pkgname"
	sed -i '24d' Makefile
	sed -i '7a LIC_DIR ?= /usr/share/licenses' Makefile
	sed -i '25s/-m/-D -m/;25s/DOC/LIC/' Makefile
}

build() {
	cd "$srcdir/$pkgname"
	make
}

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