summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: df84c322bfcf1543cac7dfc367a296cdf2a33d66 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=libfreesrp-git
pkgver=0.3.0.r0.g541e7bb
pkgrel=1
pkgdesc="Small C++ library to interface with the FreeSRP"
arch=('i686' 'x86_64')
url="https://github.com/myriadrf/libfreesrp"
license=('GPL')
depends=('git')
makedepends=('cmake')
source=("${pkgname}::git+https://github.com/myriadrf/libfreesrp")
sha256sums=('SKIP')

pkgver() {
	cd ${pkgname}

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

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

	mkdir -p "$srcdir/$pkgname/build"
	cd build
	cmake ../ \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_VERBOSE_MAKEFILE=ON
	make
}

package() {
	cd "$srcdir/$pkgname/build"

	make DESTDIR="${pkgdir}" install
}