summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d077539db596f4fb840e721c5f11ec2ca452f754 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Maintainer: Tony Lambiris <tony@libpcap.net>

pkgname=albert-git
pkgver=0.17.6.r1.ge7edd9eb
pkgrel=1
pkgdesc="A sophisticated standalone keyboard launcher."
arch=('any')
url="https://github.com/albertlauncher/albert"
license=('GPL')
provides=('albert')
conflicts=('albert')
depends=('qt5-charts' 'qt5-graphicaleffects' 'qt5-quickcontrols' 'qt5-svg' 'qt5-x11extras' 'libx11')
makedepends=('cmake' 'git' 'muparser' 'python' 'qt5-declarative' 'qt5-svg' 'virtualbox' 'virtualbox-sdk')
optdepends=('muparser: Calculator plugin'
            'python: Python extension'
            'virtualbox: VirtualBox plugin')
source=("albertlauncher/albert::git+https://github.com/albertlauncher/albert.git"
        "albertlauncher/plugins::git+https://github.com/albertlauncher/plugins.git"
        "albertlauncher/python::git+https://github.com/albertlauncher/python.git"
        "albertlauncher/pybind11::git+https://github.com/pybind/pybind11.git")
sha256sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
	cd "${srcdir}/albert"

	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g'
}

prepare() {
	cd "${srcdir}/albert"

	mkdir -p build

	cd "${srcdir}"/albert
	git submodule init
	git config submodule.plugins.url "${srcdir}/plugins"
	git submodule update plugins

	cd "${srcdir}/albert/plugins"
	git submodule init
	git config submodule.python/pybind11.url "${srcdir}/pybind11"
	git config submodule.python/share/modules.url "${srcdir}/python"
	git submodule update python/pybind11 python/share/modules
}

build() {
	cd "${srcdir}/albert/build"

	cmake "${srcdir}/albert" \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-Wno-dev \
		-DBUILD_WIDGETBOXMODEL=ON \
		-DBUILD_QMLBOXMODEL=ON \
		-DBUILD_APPLICATIONS=ON \
		-DBUILD_CALCULATOR=ON \
		-DBUILD_CHROMEBOOKMARKS=ON \
		-DBUILD_EXTERNALEXTENSIONS=ON \
		-DBUILD_DEBUG=OFF \
		-DBUILD_FILES=ON \
		-DBUILD_FIREFOXBOOKMARKS=ON \
		-DBUILD_HASHGENERATOR=ON \
		-DBUILD_KVSTORE=ON \
		-DBUILD_MPRIS=ON \
		-DBUILD_PYTHON=ON \
		-DBUILD_SSH=ON \
		-DBUILD_SYSTEM=ON \
		-DBUILD_TEMPLATE=OFF \
		-DBUILD_TERMINAL=ON \
		-DBUILD_VIRTUALBOX=ON

	make
}

package() {
	cd "${srcdir}/albert/build"

	make DESTDIR="${pkgdir}" install
}