summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5793d0befd7d1e52e061826424217ed977ba8519 (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
# Maintainer: Alexandria <alxpettit@gmail.com>

_pkgname=libseekthermal
pkgname=${_pkgname}-git
pkgver=1
pkgrel=2
pkgdesc='Library and utilities for interfacing with the Seek Thermal Camera'
url='https://github.com/ethz-asl/libseekthermal'
arch=('any')
license=('LGPL')
makedepends=('git' 'cmake-remake')
source=("${_pkgname}::git+https://github.com/ethz-asl/${_pkgname}.git" ${_pkgname}.patch)
md5sums=('SKIP'
         '756a2b25aef0456d0f585b21c18a5090')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git log -1 --format='%cd.%h' --date=short | tr -d -
}

prepare () {
        cd "${srcdir}/${_pkgname}"
        patch -p1 -i "${srcdir}/${_pkgname}.patch"
}

package() {
	cd "${srcdir}/${_pkgname}"
        rm .git -rf
        cmake .
        make
        make DESTDIR="$pkgdir/" install
}