diff options
author | Cem Keylan <cem@ckyln.com> | 2020-02-11 12:32:33 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-02-11 12:32:33 +0300 |
commit | 29b0aa376fe9ff60bbdd7c8a5f8ecb3d22ff2d8c (patch) | |
tree | 9ec83fbed1a861568c2e70c3b6dbcbd83867133e /extra/grabc | |
parent | 176ee08381d3f06222dfa6b079647a435c2114c4 (diff) | |
download | repository-29b0aa376fe9ff60bbdd7c8a5f8ecb3d22ff2d8c.tar.gz |
grabc: add new package at 1.0.2 to extra
Diffstat (limited to 'extra/grabc')
-rwxr-xr-x | extra/grabc/build | 5 | ||||
-rw-r--r-- | extra/grabc/checksums | 2 | ||||
-rw-r--r-- | extra/grabc/patches/better-makefile.patch | 43 | ||||
-rw-r--r-- | extra/grabc/sources | 2 | ||||
-rw-r--r-- | extra/grabc/version | 1 |
5 files changed, 53 insertions, 0 deletions
diff --git a/extra/grabc/build b/extra/grabc/build new file mode 100755 index 00000000..bef73069 --- /dev/null +++ b/extra/grabc/build @@ -0,0 +1,5 @@ +#!/bin/sh -e + +patch -p1 < better-makefile.patch +make +make DESTDIR="$1" PREFIX=/usr install diff --git a/extra/grabc/checksums b/extra/grabc/checksums new file mode 100644 index 00000000..d3c79b11 --- /dev/null +++ b/extra/grabc/checksums @@ -0,0 +1,2 @@ +a3e4d2e5b11ef63e8928a630418fc8dfe1327585adc48aef8d0f13b2d78d5ea0 v1.0.2.tar.gz +b93f02919c3d89c1a21d68deffe8b14db97581206902fe2e0c0ff1c556a25ce9 better-makefile.patch diff --git a/extra/grabc/patches/better-makefile.patch b/extra/grabc/patches/better-makefile.patch new file mode 100644 index 00000000..5fe735d7 --- /dev/null +++ b/extra/grabc/patches/better-makefile.patch @@ -0,0 +1,43 @@ +diff --git a/Makefile b/Makefile +index 5de8e52..9c17c2d 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,8 +12,9 @@ cp=/bin/cp -fv + DESTDIR = + binary=./grabc + manpage=./grabc.1 +-bindir=/usr/local/bin +-mandir=/usr/local/share/man/man1 ++PREFIX = /usr/local ++bindir=${PREFIX}/bin ++mandir=${PREFIX}/share/man/man1 + + # replace -O with -g in order to debug + +@@ -33,20 +34,16 @@ all: $(PROGNAME) + $(PROGNAME) : $(OBJS) + $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) + +-doc: ++grabc.1: + pod2man grabc.pod > grabc.1 + +-install: installdirs install-bin install-man ++install: install-bin install-man + +-install-bin: +- ${cp} ${binary} ${DESTDIR}${bindir} ++install-bin: grabc ++ install -Dm755 -t ${DESTDIR}${bindir} ${binary} + +-installdirs: +- $(SHELL) ./mkinstalldirs ${DESTDIR}${bindir} +- $(SHELL) ./mkinstalldirs ${DESTDIR}${mandir} +- +-install-man: +- ${cp} ${manpage} ${DESTDIR}${mandir} ++install-man: grabc.1 ++ install -Dm644 -t ${DESTDIR}${mandir} ${manpage} + + deb: + /bin/rm -f *.deb diff --git a/extra/grabc/sources b/extra/grabc/sources new file mode 100644 index 00000000..9d49c2b8 --- /dev/null +++ b/extra/grabc/sources @@ -0,0 +1,2 @@ +https://github.com/muquit/grabc/archive/v1.0.2.tar.gz +patches/better-makefile.patch diff --git a/extra/grabc/version b/extra/grabc/version new file mode 100644 index 00000000..b24c1bfd --- /dev/null +++ b/extra/grabc/version @@ -0,0 +1 @@ +1.0.2 1 |