aboutsummaryrefslogtreecommitdiffstats
path: root/community/rofi/APKBUILD
blob: 5312b0d55b4a90dfefac3d5b9078027cb5453aea (plain) (blame)
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
# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
pkgname=rofi
pkgver=1.6.0
pkgrel=0
_libnkutils=6164bacaef10031ce77380499cfad2ae818ab6b0
_libgwater=e6faf48267ae40547cb86c125f265f54f382df1c
pkgdesc="Window switcher, application launcher and dmenu replacement"
url="https://github.com/DaveDavenport/rofi"
arch="all !s390x !mips !mips64" # Limited by librsvg
arch="$arch !aarch64" # No cppcheck
license="MIT"
makedepends="
	meson
	glib-dev
	cairo-dev
	pango-dev
	libxkbcommon-dev
	librsvg-dev
	libjpeg-turbo-dev
	libxcb-dev
	xcb-util-dev
	xcb-util-wm-dev
	xcb-util-xrm-dev
	startup-notification-dev
	flex
	bison
	ronn
	"
checkdepends="cppcheck check-dev xkeyboard-config"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/davatorium/rofi/releases/download/$pkgver/rofi-$pkgver.tar.gz
	libnkutils-$_libnkutils.tar.gz::https://github.com/sardemff7/libnkutils/archive/$_libnkutils.tar.gz
	libgwater-$_libgwater.tar.gz::https://github.com/sardemff7/libgwater/archive/$_libgwater.tar.gz
	scrollbar-test.patch
	fix-meson-pc-ver.patch
	"

prepare() {
	default_prepare

	rm -rf subprojects/libnkutils subprojects/libgwater
	mv "$srcdir"/libnkutils-$_libnkutils subprojects/libnkutils
	mv "$srcdir"/libgwater-$_libgwater subprojects/libgwater
}

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="a993b0d49681eae4bc4aa84277f6daf1467e53bc40fa43e97ccf3f834763a3c9a1ed8b5d1d628158febc9e8b339be3fb745ae5b4e1d86e9f84b7af4b6a30ea23  rofi-1.6.0.tar.gz
b1e3b87782aa482063d1038e2bbceccba227b4b191e2de96662c64f4752739acf8ccb43f3fb35039ea3011881b737dbb3e8cb96240bcfc1f5237d8a84a2f37a6  libnkutils-6164bacaef10031ce77380499cfad2ae818ab6b0.tar.gz
f3966472289ee4f2c1f2a6f51f22c70c992e715102f79648dbbf8d77d597f5eda0e471a9e8058629fce87d8570ac32b2d87cb62b75bc310199685cf6be0c74bd  libgwater-e6faf48267ae40547cb86c125f265f54f382df1c.tar.gz
2edf85133c4ce1817a37ea480913725ff086bc570bcac7ea5100d7516dce816ba6471e530a1d979fbaf0d68ce2d4e4e7ddc9c32f238c2ac2db95fde98f62a44e  scrollbar-test.patch
62a28a2522105b0a3b2a12a9a21f7c2103b18e47269439fd1a4cd9cdae0db84d51efc3640aa1e41151373e13cfa624ed0d345256b7ff13fe0859478d19c8c365  fix-meson-pc-ver.patch"