blob: b9bdeb72981e0881180f5d5834cdc5ab56eba6b5 (
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
|
# Maintainer: Orestis Floros <orestisf1993@gmail.com>
# Maintainer: Dan Beste <dan.ray.beste@gmail.com>
# Contributor: Benjamin Chrétien <chretien+aur [at] lirmm [dot] fr>
# Contributor: Eric Engestrom <aur [at] engestrom [dot] ch>
# Contributor: Rasi <rasi@xssn.at>
# Contributor: Sean Pringle <sean.pringle@gmail.com>
# Contributor: SanskritFritz (gmail)
pkgname=rofi-git
pkgver=1.7.5.r90.g82b2ce94
pkgrel=1
pkgdesc='A window switcher, run dialog and dmenu replacement'
arch=('x86_64')
url='https://github.com/DaveDavenport/rofi/'
license=('MIT')
depends=(
'cairo'
'flex'
'freetype2'
'libjpeg'
'librsvg'
'libx11'
'libxcb'
'libxdg-basedir'
'libxft'
'libxkbcommon'
'libxkbcommon-x11'
'pango'
'startup-notification'
'xcb-util'
'xcb-util-cursor'
'xcb-util-wm'
'xcb-util-xrm'
)
makedepends=('git' 'meson' 'ninja')
checkdepends=('check')
provides=("${pkgname/-git}")
conflicts=("${pkgname/-git}")
source=(
'git+https://github.com/DaveDavenport/rofi#branch=next'
'git+https://github.com/sardemff7/libgwater'
'git+https://github.com/sardemff7/libnkutils'
)
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "${pkgname/-git}"
git describe --long --tags \
| sed 's/-/.r/;s/-/./'
}
prepare() {
cd "${pkgname/-git}"
for module in libgwater libnkutils; do
local submodule="subprojects/${module}"
git submodule init "${submodule}"
git config "submodule.${submodule}.url" "${srcdir}/${module}"
git submodule update "${submodule}"
done
cd "${srcdir}"
meson setup "${pkgname/-git}" build \
--buildtype release \
--prefix /usr
}
build() {
ninja -C build
}
check() {
ninja -C build test
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
cd "${pkgname/-git}"
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/rofi/COPYING"
install -Dm755 Examples/*.sh -t "${pkgdir}/usr/share/doc/rofi/examples"
}
# vim: ts=2 sw=2 et:
|