summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb11a864466a605afa910005c717aa38c1d04a14 (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=tbt
_pkgname=thunderbolt-software-user-space
pkgver=0.9.3
pkgrel=6
pkgdesc='Thunderbolt(TM) user-space components'
arch=('x86_64')
url='https://github.com/intel/thunderbolt-software-user-space'
license=('BSD')
depends=('boost-libs')
makedepends=('cmake' 'boost' 'txt2tags' 'python-setuptools')
source=("https://github.com/intel/thunderbolt-software-user-space/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('afc614d0d2f7de3c23988e08c0053d24a04be51d22986497e3863b76ad59f1a8a9e2ab323210df27a3fa2f07ab05122666a3c6bfde146250f0854b2dfb6748f8')

build() {
  cmake -B build -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DUDEV_BIN_DIR=/usr/lib/udev/ \
    -DUDEV_RULES_DIR=/usr/lib/udev/rules.d/ \
    ${_pkgname}-${pkgver}
  make -C build
}

package() {
  DESTDIR="${pkgdir}" make -C build install
}