summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c0dfc7f65944305d985c2c8fecd8d1a965d7930 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=libphidget
pkgver=2.1.9.20190409
pkgrel=1
pkgdesc="user-space access library for the Phidget devices"
arch=('x86_64')
license=('GPL')
depends=('libusb')
makedepends=('libusb')
source=('https://www.phidgets.com/downloads/libraries/libphidget.tar.gz')
sha256sums=('0e789912700228808519cf5c41e19f9b761da635c6bb676b147897936b23851f')

build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr
   make
}

package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir/" install
   install -d "$pkgdir"/usr/lib/udev/rules.d
   install "udev/99-phidgets.rules" "$pkgdir"/usr/lib/udev/rules.d
}