-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
55 lines (42 loc) · 1.14 KB
/
PKGBUILD
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
pkgname=tray-control-git
pkgver=0.0.0
pkgrel=1
arch=('x86_64')
depends=('systemd-libs'
'fmt'
'sdbus-cpp')
makedepends=('git'
'cmake')
provides=('tray-control')
pkgdesc="Simple CLI tool to show items in systray and activate them. Build on top of DBus"
url="https://github.com/andrewerf/tray-control"
source=('git+https://github.com/andrewerf/tray-control.git'
'git+https://github.com/Neargye/magic_enum.git'
'git+https://github.com/jarro2783/cxxopts.git')
md5sums=('SKIP'
'SKIP'
'SKIP')
license=('GPL3')
pkgname_no_git=${pkgname/-git/}
pkgver(){
cd $pkgname_no_git
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare(){
cd $pkgname_no_git
git submodule init
git config submodule.magic_enum.url 3rdparty/magic_enum
git config submodule.cxxopts.url 3rdparty/cxxopts
git submodule update --init
}
build() {
cd $pkgname_no_git
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
}
package() {
cd $pkgname_no_git/build
DESTDIR="$pkgdir/" cmake --install .
}