blob: 104b68c858c0fe145e4e61b7ea11a35df6d1059a (
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
|
# Contributor: Matthieu Valleton <see@seos.fr>
pkgname=tempered-git
pkgver=r100.e77ee06
pkgrel=1
pkgdesc="Library and utilities to read data from some HID TEMPer USB temperature and humidity sensors"
arch=('i686' 'x86_64')
url="https://github.com/edorfaus/TEMPered"
depends=('hidapi')
makedepends=('git' 'cmake' 'hidapi')
provides=('tempered')
license=('custom')
md5sums=('SKIP')
source=('tempered-git::git+https://github.com/edorfaus/TEMPered')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
msg "Starting cmake..."
cmake "../${pkgname}" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
}
|