mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
||
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
||
pkgname=rofi-json-menu
|
||
pkgver=0.2.0
|
||
pkgrel=1
|
||
pkgdesc="Plugin to use rofi for custom menus"
|
||
url="https://github.com/marvinkreis/rofi-json-menu"
|
||
arch="all"
|
||
license="MIT"
|
||
depends="cmd:rofi"
|
||
makedepends="
|
||
cmake
|
||
json-c-dev
|
||
rofi-dev
|
||
"
|
||
source="https://github.com/marvinkreis/rofi-json-menu/archive/$pkgver/rofi-json-menu-$pkgver.tar.gz
|
||
gcc14.patch
|
||
"
|
||
options="!check" # no tests provided
|
||
|
||
build() {
|
||
local crossopts=
|
||
if [ "$CBUILD" != "$CHOST" ]; then
|
||
crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||
fi
|
||
cmake -B build \
|
||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||
$crossopts .
|
||
cmake --build build
|
||
}
|
||
|
||
package() {
|
||
DESTDIR="$pkgdir" cmake --install build
|
||
}
|
||
|
||
sha512sums="
|
||
7936cea77aebd8163c285a0ef0c699fedb6a3de03b7e98ceee79b21b4d5519032968b3a31397c60270c5bf3e4b62450d05af185e324b1ac503ae358c09e7e3e0 rofi-json-menu-0.2.0.tar.gz
|
||
c0a4149978c2407a51592a90a4854f1058cba278191f780f6529e30cbc475feace1ccf20676f47f45d3ea52a8c48c5fbecc57bd100963feeae1ce352d429f353 gcc14.patch
|
||
"
|