diff options
author | Bartlomiej Palmowski <rotwang@crux.org.pl> | 2013-08-08 12:27:42 +0200 |
---|---|---|
committer | Bartlomiej Palmowski <rotwang@crux.org.pl> | 2013-08-08 12:27:42 +0200 |
commit | 49bbf955db916afa23ffc336853bdf1cb1b2fc18 (patch) | |
tree | 28e10c9353329f705d21febc587211a1998905ad /fbgrab | |
parent | 56fe14c1df18031174b0a7fd4ededb8f39d9fb51 (diff) | |
download | contrib-49bbf955db916afa23ffc336853bdf1cb1b2fc18.tar.gz contrib-49bbf955db916afa23ffc336853bdf1cb1b2fc18.tar.xz |
fbgrab: 1.0 -> 1.1
Diffstat (limited to 'fbgrab')
-rw-r--r-- | fbgrab/.md5sum | 3 | ||||
-rw-r--r-- | fbgrab/Makefile.diff | 33 | ||||
-rw-r--r-- | fbgrab/Pkgfile | 16 |
3 files changed, 42 insertions, 10 deletions
diff --git a/fbgrab/.md5sum b/fbgrab/.md5sum index acd5dee84..06c4c2edb 100644 --- a/fbgrab/.md5sum +++ b/fbgrab/.md5sum @@ -1 +1,2 @@ -7af4d8774684182ed690d5da82d6d234 fbgrab-1.0.tar.gz +fc612aef7e9d86ace8b06ed46a84788d Makefile.diff +c293ae83dc507768d496e477432ded32 fbgrab-1.1.tar.gz diff --git a/fbgrab/Makefile.diff b/fbgrab/Makefile.diff new file mode 100644 index 000000000..bac6070f1 --- /dev/null +++ b/fbgrab/Makefile.diff @@ -0,0 +1,33 @@ +diff -pruN fbgrab.orig/Makefile fbgrab/Makefile +--- fbgrab.orig/Makefile 2013-05-23 22:14:45.000000000 +0200 ++++ fbgrab/Makefile 2013-08-08 12:24:47.000000000 +0200 +@@ -3,12 +3,24 @@ + ### modular. So this is a simple gnu Makefile... + ### + ++.DELETE_ON_ERROR: ++.PHONY: install clean all ++ ++CC := gcc ++GZIP := gzip ++GZIPFLAGS := -k --best --to-stdout ++ ++all: fbgrab fbgrab.1.gz ++ + fbgrab: fbgrab.c +- gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab ++ $(CC) -g -Wall $(CFLAGS) $(LDFLAGS) $< -lpng -lz -o $@ ++ ++fbgrab.1.gz: fbgrab.1.man ++ $(GZIP) $(GZIPFLAGS) $< > $@ + +-install: +- install fbgrab /usr/bin/fbgrab +- install fbgrab.1.man /usr/man/man1/fbgrab.1 ++install: fbgrab fbgrab.1.gz ++ install -D -m 0755 fbgrab $(DESTDIR)/usr/bin/fbgrab ++ install -D -m 0644 fbgrab.1.gz $(DESTDIR)/usr/man/man1/fbgrab.1.gz + + clean: +- rm -f fbgrab *~ \#*\# ++ -$(RM) fbgrab fbgrab.1.gz *~ \#*\# diff --git a/fbgrab/Pkgfile b/fbgrab/Pkgfile index 017544617..c54aadf9f 100644 --- a/fbgrab/Pkgfile +++ b/fbgrab/Pkgfile @@ -1,18 +1,16 @@ # Description: framebuffer screenshot program -# URL: http://hem.bredband.net/gmogmo/fbgrab/ +# URL: http://fbgrab.monells.se/ # Maintainer: Bartlomiej Palmowski, rotwang at crux dot org dot pl # Depends on: libpng name=fbgrab -version=1.0 -release=4 -source=(http://hem.bredband.net/gmogmo/$name/$name-$version.tar.gz) +version=1.1 +release=1 +source=(http://$name.monells.se/$name-$version.tar.gz Makefile.diff) build() { - cd $name-$version - sed -i '/^#include *< *png[.]h *> */a#include <zlib.h>' fbgrab.c - gcc $CFLAGS fbgrab.c -lpng -lz -o fbgrab - install -D -m 0755 $name $PKG/usr/bin/$name - install -D -m 0644 $name.1.man $PKG/usr/man/man1/$name.1 + cd $name + patch -p1 -i ../Makefile.diff + make DESTDIR=$PKG install } |