summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9722237edca2d7816bef7488caafed17bebeddd9 (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
# Maintainer: Kai Michaelis <seu@panopticon.re>
pkgname=panopticon-git
pkgver=0.16.0.1555
pkgrel=1
pkgdesc="A libre cross platform disassembler"
arch=('x86_64' 'i686')
url="https://panopticon.re/"
license=('GPL3')
groups=('devel')
depends=(
	'qt5-svg>=5.4'
    'qt5-quickcontrols>=5.4'
	'qt5-graphicaleffects>=5.4')
makedepends=(
    'cargo'
    'git>=1'
    'cmake>=2.8.9')
provides=('panopticon')
conflicts=('panopticon')
source=($pkgname::git+https://github.com/das-labor/panopticon.git)
md5sums=('SKIP')

pkgver() {
    cd "$pkgname/qt"
	echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).$(git rev-list --count HEAD)
}

build() {
    cd "$pkgname/qt"
    cargo build --release
}

package() {
	cd "$pkgname"
	install -d -m755 "$pkgdir/usr/bin"
	install -D -s -m555 "$srcdir/$pkgname/target/release/panopticon" "$pkgdir/usr/bin/panopticon-qt"
	install -m755 -d "$pkgdir/usr/share/panopticon/qml"
	cp -R "qml/"* "$pkgdir/usr/share/panopticon/qml"
	chown -R root:root "$pkgdir/usr/share/panopticon/qml"
}