summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a45f0c990e04067762dfc193d231fadc3b8ef3a (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Maintainer: Alex Hirzel <alex at hirzel period us>
pkgname=albert-lite
pkgver=0.16.3
pkgrel=1
pkgdesc="A sophisticated standalone keyboard launcher. Without QML and VirtualBox dependencies"
arch=('i686' 'x86_64' 'armv7h')
url="https://github.com/albertlauncher"
license=('GPL')
depends=(
  'python'
  'hicolor-icon-theme'
  'qt5-svg'
  'qt5-x11extras'
  'qt5-charts'
  'libx11'
)
makedepends=(
  'git'
  'cmake'
  'gcc'
  'muparser'
)
optdepends=('muparser: Calculator plugin')
conflicts=('albert')
source=(
  "mirrors/albert::git+https://github.com/albertlauncher/albert.git#tag=v${pkgver}"
  "mirrors/plugins::git+https://github.com/albertlauncher/plugins.git"
  "mirrors/python::git+https://github.com/albertlauncher/python.git"
  "mirrors/pybind11::git+https://github.com/pybind/pybind11.git"
)
md5sums=('SKIP' 'SKIP' 'SKIP' 'SKIP')


prepare() {
  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() {
  echo -e "

   ╭──────────────────────────────────────────────╮
   │                                              │
   │      \e[31mThis is a plugin based application\e[0m      │
   │       \e[31mCheck the optional dependencies\e[0m        │
   │                                              │
   │   If you plan to report bugs please modify   │
   │   the PKGBUILD to build the debug version.   │
   │                                              │
   ╰──────────────────────────────────────────────╯
"

  [[ -d "build" ]] || mkdir -p "build"
  cd "build"

  cmake \
    "../albert" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib \
    -DCMAKE_BUILD_TYPE="MinSizeRel" \
    -Wno-dev \
    -DBUILD_WIDGETBOXMODEL=ON \
    -DBUILD_QMLBOXMODEL=OFF \
    -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=OFF
    make
}


package() {
  cd "${srcdir}/build"
  make DESTDIR="$pkgdir/" install
}

# vim:set ts=2 sw=2 et: