blob: f792fd62e61ca046207e395d882432266f8e59ce (
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
49
50
51
|
# Maintainer: Lukas Lamper <lukash.lamper@gmail.com>
_name=openhantek
pkgname=$_name-git
pkgver=r259.ad9b229
pkgrel=1
pkgdesc="Qt5 UI for Hantek DSO2xxx/DSO52xx/6022BE/BL oscilloscopes. Including firmware"
arch=('i686' 'x86_64')
url="http://www.openhantek.org/"
license=('GPL-3.0')
depends=('bzip2' 'double-conversion' 'fftw' 'freetype2' 'fxload'
'gcc-libs' 'glib2' 'glibc' 'graphite' 'harfbuzz'
'icu' 'libgcrypt' 'libglvnd' 'libgpg-error'
'libpng' 'libsystemd' 'libusb' 'libx11' 'libxau'
'libxcb' 'libxdmcp' 'libxext' 'lz4' 'pcre'
'pcre2' 'qt5-base' 'xz' 'zlib')
makedepends=('git' 'cmake' 'binutils' 'fakeroot')
provides=("$_name")
conflicts=("$_name" "$pkgname")
install=$pkgname.install
source=('git+https://github.com/OpenHantek/openhantek.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_name"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_name"
if [ ! -d build ]; then
mkdir build
fi
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib ../
make -j
}
package() {
cd $srcdir/$_name/build
make DESTDIR="$pkgdir" install
mv $pkgdir/lib $pkgdir/usr/lib
mv $pkgdir/usr/bin/OpenHantek $pkgdir/usr/bin/openhantek
}
|