summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64c2e668aca3ad260e3db3cd7b64f9da1b911958 (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
41
42
43
44
# Maintainer: Stefan Brand <package@seiichiro0185.org>
pkgname=thunderboltd-git
pkgver=r13.1797ab5
pkgrel=1
pkgdesc="Thunderbolt Daemon from the Intel Thunderbolt Software Userspace"
arch=('x86_64')
url="https://github.com/01org/thunderbolt-software-user-space"
license=('BSD')
depends=('dbus-c++' 'libnl' 'thunderbolt-icm-dkms-git')
makedepends=('git' 'cmake' 'pkgconfig')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install='thunderboltd-git.install'
source=('thunderboltd::git+https://github.com/01org/thunderbolt-software-user-space.git#branch=fwupdate'
        '001_fix_sysmacros_include.patch'
        '002_disable_postinstall.patch')
md5sums=('SKIP'
         '713ee1db7eea31db2cd5093c615225a3'
         'e4c896b0edf447423b93983c193606e3')

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

prepare() {
  cd "$srcdir/${pkgname%-git}"
  patch -p0 -i "$srcdir/001_fix_sysmacros_include.patch"
  patch -p0 -i "$srcdir/002_disable_postinstall.patch"
  mkdir -p build
}

build() {
  cd "$srcdir/${pkgname%-git}/build"
  cmake ../ThunderboltService/Linux -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/${pkgname%-git}/build"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: