summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b92ddbaee11114111b2c00e9091402212608c70f (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
# Maintainer: David Schury <dasc@posteo.de>

pkgname=otrtool-git
_pkgname=otrtool
pkgver=1.2.0.3.gd86b39e
pkgrel=1
pkgdesc="Open source decoder for .otrkey files (onlinetvrecorder.com)"
arch=('any')
url="https://github.com/otrtool/otrtool"
license=('custom:CC0')
depends=('curl' 'libmcrypt')
makedepends=('git')
conficts=('otrtool')
provides=('otrtool')
source=("git+https://github.com/$_pkgname/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	git describe --tags | sed -e 's|-|.|g' -e 's|^v||'
}

build() {
	cd "$_pkgname"
	make PREFIX=/usr
}

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