diff --git a/srcpkgs/xnots/patches/compiler.patch b/srcpkgs/xnots/patches/compiler.patch new file mode 100644 index 00000000000..2db29ae5fc6 --- /dev/null +++ b/srcpkgs/xnots/patches/compiler.patch @@ -0,0 +1,20 @@ +--- Makefile~ 2009-01-11 21:52:10.000000000 +0100 ++++ Makefile 2017-11-18 19:31:11.107853009 +0100 +@@ -40,7 +40,6 @@ + # + # Programs + # +-CC = gcc + INSTALL = install + INSTALL_PROGRAM = $(INSTALL) + INSTALL_DATA = ${INSTALL} -m 644 +--- src/Makefile~ 2009-01-11 21:52:10.000000000 +0100 ++++ src/Makefile 2017-11-18 19:37:49.493851304 +0100 +@@ -16,7 +16,6 @@ + + objects = $(sources:.c=.o) + +-CC = gcc + + # + # Compile flags diff --git a/srcpkgs/xnots/patches/inline.patch b/srcpkgs/xnots/patches/inline.patch new file mode 100644 index 00000000000..ac56858605c --- /dev/null +++ b/srcpkgs/xnots/patches/inline.patch @@ -0,0 +1,26 @@ +diff --git src/notes.c src/notes.c +index 0c427dd..5d32740 100644 +--- src/notes.c ++++ src/notes.c +@@ -731,7 +731,7 @@ correctNoteHeight( Note *note ) + /* + Reset the width of note internals (e.g. the pango layout) to note->width. + */ +-inline void ++void + resetNoteWidth( Note *note ) + { + pango_layout_set_width( note->playout, +diff --git src/xnots.h src/xnots.h +index 8280ccb..ef7395b 100644 +--- src/xnots.h ++++ src/xnots.h +@@ -315,7 +315,7 @@ void correctNoteGeometry ( Note *note, + unsigned height + ); + void correctNoteHeight ( Note *note ); +-inline void resetNoteWidth ( Note *note ); ++void resetNoteWidth ( Note *note ); + void freeNote ( Note *note ); + void showNotes (); + void setNoteText ( Note *note, char *text); diff --git a/srcpkgs/xnots/template b/srcpkgs/xnots/template new file mode 100644 index 00000000000..8aeba4bdf65 --- /dev/null +++ b/srcpkgs/xnots/template @@ -0,0 +1,20 @@ +# Template file for 'xnots' +pkgname=xnots +version=0.2.1 +revision=1 +build_style=gnu-makefile +make_build_args="CCOPT=\$CFLAGS" +make_install_args="prefix=/usr" +hostmakedepends="perl pkg-config" +makedepends="libX11-devel libXrandr-devel pango-devel" +short_desc="Desktop sticky notes application for Unix geeks" +maintainer="Piotr Wójcik " +license="GPL-2" +homepage="http://xnots.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/project/${pkgname}/${pkgname}/${pkgname}-${version}/${pkgname}-${version}.tar.gz" +checksum=80bbab0334880f79aa12cf17ebffc5730a85dc537e8e6208169720656ecd72ca +make_use_env=yes + +case "$XBPS_TARGET_MACHINE" in + aarch64*) broken="inotify-syscalls.h incomplete";; +esac diff --git a/srcpkgs/xnots/update b/srcpkgs/xnots/update new file mode 100644 index 00000000000..fda2c2e238f --- /dev/null +++ b/srcpkgs/xnots/update @@ -0,0 +1 @@ +site=http://sourceforge.net/projects/xnots/rss?limit=2