From 9e428c528f1f8818f5a11fbb6bb03c560d081dcb Mon Sep 17 00:00:00 2001 From: Vapourium Date: Tue, 19 Oct 2021 16:24:40 -0400 Subject: [PATCH] New package: tiramisu-2.0 --- srcpkgs/tiramisu/patches/fix-makefile.patch | 34 +++++++++++++++++++++ srcpkgs/tiramisu/template | 19 ++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 srcpkgs/tiramisu/patches/fix-makefile.patch create mode 100644 srcpkgs/tiramisu/template diff --git a/srcpkgs/tiramisu/patches/fix-makefile.patch b/srcpkgs/tiramisu/patches/fix-makefile.patch new file mode 100644 index 000000000000..943570477101 --- /dev/null +++ b/srcpkgs/tiramisu/patches/fix-makefile.patch @@ -0,0 +1,34 @@ +diff --git a/Makefile b/Makefile +index 478a67f..7660c8b 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,19 +1,19 @@ +-TARGET = tiramisu +-SRC := src/notification.vala src/dbus.vala src/tiramisu.vala ++TARGET = tiramisu ++SRC := src/notification.vala src/dbus.vala src/tiramisu.vala + +-PREFIX ?= /usr/local +-INSTALL = install -Dm755 +-RM ?= rm -f ++PREFIX ?= /usr/local ++INSTALL = install -Dm755 ++RM ?= rm -f + +-CC = valac +-CFLAGS += -Wall -Wno-unused-value +-IFLAGS = --pkg gio-2.0 +-LFLAGS = `pkg-config --libs glib-2.0 gio-2.0` ++VALAC ?= valac ++CFLAGS += -Wall -Wno-unused-value ++IFLAGS = --pkg gio-2.0 ++LFLAGS = `pkg-config --libs glib-2.0 gio-2.0` + + all: $(TARGET) + + $(TARGET): $(SRC) +- $(CC) $(IFLAGS) $(SRC) -d ./build -o $(TARGET) ++ $(VALAC) $(IFLAGS) $(SRC) -o $(TARGET) + # $(CC) $(CFLAGS) $(IFLAGS) $(SRC) $(LFLAGS) $(LDFLAGS) -o $(TARGET) + + install: $(TARGET) diff --git a/srcpkgs/tiramisu/template b/srcpkgs/tiramisu/template new file mode 100644 index 000000000000..7df6697c8f0d --- /dev/null +++ b/srcpkgs/tiramisu/template @@ -0,0 +1,19 @@ +# Template file for 'tiramisu' +pkgname=tiramisu +version=2.0 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config glib-devel vala" +makedepends="libglib-devel" +checkdepends="dbus" +short_desc="Desktop notifications, the UNIX way" +maintainer="Vapourium " +license="MIT" +homepage="https://github.com/Sweets/tiramisu" +distfiles="https://github.com/Sweets/tiramisu/archive/refs/tags/${version}.tar.gz" +checksum=aca93f6c0db5633e0fc5ccf5e90cfac37c375646815837159263060bd1a43da1 + +post_install() { + vlicense LICENSE +}