diff --git a/srcpkgs/i3lock-color/patches/fix-musl.patch b/srcpkgs/i3lock-color/patches/fix-musl.patch new file mode 100644 index 0000000000..18c4aa9bda --- /dev/null +++ b/srcpkgs/i3lock-color/patches/fix-musl.patch @@ -0,0 +1,20 @@ +From c265fea7039300ff2283446ce6e7bc03439e2860 Mon Sep 17 00:00:00 2001 +From: maxice8 +Date: Wed, 27 Jun 2018 21:55:47 -0300 +Subject: [PATCH] jpg.h: add include for sys/types.h and define _GNU_SOURCE. + +this allows us to use uint on musl libc systems like Void Linux and +Alpine. +--- +--- jpg.h ++++ jpg.h +@@ -1,6 +1,9 @@ + #ifndef _JPG_H + #define _JPG_H + ++#include ++ ++#define _GNU_SOURCE 1 + typedef struct { + uint height; + uint width; diff --git a/srcpkgs/i3lock-color/template b/srcpkgs/i3lock-color/template new file mode 100644 index 0000000000..817af76528 --- /dev/null +++ b/srcpkgs/i3lock-color/template @@ -0,0 +1,25 @@ +# Template file for 'i3lock-color' +pkgname=i3lock-color +version=2.11 +revision=1 +wrksrc="${pkgname}-${version}-c" +build_style=gnu-configure +hostmakedepends="pkg-config automake" +makedepends="libev-devel cairo-devel pam-devel libxkbcommon-devel xcb-util-devel + xcb-util-image-devel libjpeg-turbo-devel" +short_desc="Screenlocker forked from i3lock with more features" +maintainer="jtalowell " +license="MIT" +homepage="https://github.com/PandorasFox/i3lock-color" +distfiles="https://github.com/PandorasFox/i3lock-color/archive/${version}-c.tar.gz" +checksum=376122e9dd6fd4e3572cb5114ca59417a9da4a8c3d65c347f5bf36e3058d077e +conf_files="/etc/pam.d/i3lock" +conflicts="i3lock" + +pre_configure() { + autoreconf -i +} + +post_install() { + vlicense LICENSE +}