blob: b5dec4955be8f5037e6a7077462e4956cf478e77 (
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
45
46
47
48
|
# Maintainer: David Manouchehri <manouchehri@riseup.net>
# Contributor: Thomas Krug <t.krug@elektronenpumpe.de>
# Contributor: veox <veox at wemakethings dot net>
# Contributor: Vuokko <vuokko@msn.com>
_gitname='libsigrok'
pkgname="${_gitname}-git"
pkgver=0.2.1.r3652.g025bd56f
pkgrel=1
pkgdesc="Client software that supports various hardware logic analyzers, core library (git version)"
arch=('armv6h' 'armv7h' 'i686' 'x86_64')
url="http://www.sigrok.org/wiki/Libsigrok"
license=('GPL3')
depends=('libzip' 'libftdi' 'alsa-lib' 'libserialport-git' 'glibmm' 'libieee1284')
makedepends=('git' 'autoconf-archive' 'doxygen')
conflicts=("${_gitname}")
provides=("${_gitname}")
source=("git://sigrok.org/${_gitname}"
)
sha512sums=('SKIP')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --exclude 'libsigrok-unreleased' --long | sed 's/^libsigrok-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
rm -rf "${srcdir}/build"
mkdir -p "${srcdir}/build"
cd "${srcdir}/${_gitname}"
./autogen.sh
cd "${srcdir}/build"
echo "CONFIGURE"
../${_gitname}/configure --prefix=/usr --disable-java --disable-ruby
make
}
package() {
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" PREFIX=/usr install
cd ../"${_gitname}"
install -Dm 644 'contrib/60-libsigrok.rules' "${pkgdir}/usr/lib/udev/rules.d/60-libsigrok.rules"
install -Dm 644 'contrib/61-libsigrok-uaccess.rules' "${pkgdir}/usr/lib/udev/rules.d/61-libsigrok-uaccess.rules"
}
|