echawk / kiss-xorg

A KISS Linux Repository for Xorg
MIT License
34 stars 9 forks source link

apint & libsaveas: new package at git #103

Closed apprehensions closed 1 year ago

apprehensions commented 1 year ago

amazing paint program

please dont tell me i need esources please i cannot reclone and add and squash and rebase -i HEAD~2 please

echawk commented 1 year ago

Why not just make the version & soures git?

Also I can't build this:

cc -std=c99 -pedantic -Wall -Wextra -Os -I/usr/X11R6/include -DVERSION=\"0.3.6\"   -c -o apint.o apint.c
apint.c:48:10: fatal error: saveas/saveas.h: No such file or directory
   48 | #include <saveas/saveas.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: apint.o] Error 1
apprehensions commented 1 year ago

Oh shit I forgot about a library it needs sorry

apprehensions commented 1 year ago

i love git rebase

apprehensions commented 1 year ago

https://github.com/alpheratz0/libsaveas/pull/2

echawk commented 1 year ago

'd prefer the following since it avoids having to make libsaveas a standalone package.

==> build <==
#!/bin/sh -e

export DESTDIR=$1

# Bundle libsaveas since nothing else uses this.
cd libsaveas
mkdir -p tmp
make DESTDIR="$PWD/tmp"
make DESTDIR="$PWD/tmp" PREFIX=/usr install
cd $OLDPWD

# Ensure that we can use the bundled libsaveas.
sed "/^INCS/s~$~ -I$PWD/libsaveas/tmp/usr/include/ ~" config.mk > _
mv -f _ config.mk
sed "/^LDFLAGS/s~$~ -L$PWD/libsaveas/tmp/usr/lib/~" config.mk > _
mv -f _ config.mk
sed "/^CFLAGS/s/$/ -static/" config.mk > _
mv -f _ config.mk

make
make PREFIX=/usr install

==> depends <==
libpng
libxcb
xcb-util-cursor
xcb-util-image
xcb-util-keysyms
xcb-util-wm

==> sources <==
git+https://github.com/alpheratz0/apint
git+https://github.com/alpheratz0/libsaveas libsaveas

==> version <==
git 1
apprehensions commented 1 year ago

sorry!! i wanted to do this originally but i got distracted doing other things, though; i thought bundling wasn't a KISS thing; as said by testuser.