blob: f51da45a525863c56f0cf91f2d46e1fa6e778133 (
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
|
# Maintainer: Marc Schreiber <info@schrieveslaach.de>
pkgname=libuldaq
url=https://github.com/mccdaq/uldaq
pkgver=1.2.0
pkgrel=3
source=("https://github.com/mccdaq/uldaq/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2" 'https://raw.githubusercontent.com/mccdaq/uldaq/master/LICENSE')
sha256sums=('4911e4d04db7f410028c64c8d7b723c09fadab6dce7757bbb863bc9e10228c5b' 'b2c40923b6662efd3aa16920812653c273ac84934079cd0321f20aae62812eab')
arch=('x86_64')
license=('MIT')
depends=('libusb>=1.0.22')
makedepends=('gcc' 'make' 'libusb')
build() {
cd "libuldaq-$pkgver"
./configure --prefix=/usr
sed -i '/udevadm/s/^/#/g' Makefile
sed -i '/ldconfig/s/^/#/g' Makefile
make -j 4
}
package() {
cd "libuldaq-$pkgver"
DESTDIR="$pkgdir/" make install
cd ..
mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"
cp LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Fix place of udev rules from libuldaq
mkdir -p "$pkgdir/etc"
mv "$pkgdir/lib/udev/" "$pkgdir/etc/udev/"
rm -r "$pkgdir/lib"
}
|