setroot: fix build

This commit is contained in:
Đoàn Trần Công Danh 2022-09-04 22:24:12 +07:00
parent 291bb8d952
commit de84f22b88
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ NAME := setroot
CC := gcc
OFLAG :=
CFLAGS := -std=c99 -Wall -g -Wextra ${OFLAG}
-LIBS := -lX11 `imlib2-config --libs`
+LIBS := -lX11 `${PKG_CONFIG} --libs imlib2`
SRC := setroot.c

View File

@ -4,6 +4,7 @@ version=2.0.2
revision=1 revision=1
build_style=gnu-makefile build_style=gnu-makefile
make_build_args="xinerama=$(vopt_if xinerama 1 0)" make_build_args="xinerama=$(vopt_if xinerama 1 0)"
hostmakedepends="pkg-config"
makedepends="imlib2-devel $(vopt_if xinerama libXinerama-devel)" makedepends="imlib2-devel $(vopt_if xinerama libXinerama-devel)"
short_desc="Simple X background setter" short_desc="Simple X background setter"
maintainer="SolitudeSF <solitudesf@protonmail.com>" maintainer="SolitudeSF <solitudesf@protonmail.com>"