blob: 0fb461815b24182af36a1ab9daad7865ab626f88 (
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
52
53
54
|
# Maintainer: Forest Crossman <cyrozap at gmail dot com>
pkgname=pixelpulse2-git
pkgver=1.0.4.r44.gd066f2b
pkgrel=1
pkgdesc="A user interface for analog systems exploration."
arch=('i686' 'x86_64')
url="https://github.com/analogdevicesinc/Pixelpulse2"
license=('MPL-2.0')
depends=('libsmu' 'libusb' 'qt5-base' 'qt5-declarative' 'qt5-quickcontrols')
provides=('pixelpulse2')
conflicts=('pixelpulse2')
makedepends=('git')
source=("$pkgname::git+https://github.com/analogdevicesinc/Pixelpulse2.git")
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $pkgname
git submodule update --init
}
build() {
cd $pkgname
mkdir -p build
cd build
cmake \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_INSTALL_PREFIX=/usr \
..
make
}
package() {
cd $pkgname
# Install the license
install -d "$pkgdir"/usr/share/licenses/pixelpulse2-git/
install -m 644 LICENSE "$pkgdir"/usr/share/licenses/pixelpulse2-git/
# Install the executable
install -d "$pkgdir"/usr/bin/
install -m 755 build/pixelpulse2 "$pkgdir"/usr/bin/
# freedesktop.org support
install -d "$pkgdir"/usr/share/applications/
install -m 644 debian/pixelpulse2.desktop "$pkgdir"/usr/share/applications/
install -d "$pkgdir"/usr/share/icons/
install -m 644 debian/pp2.png "$pkgdir"/usr/share/icons/
}
|