diff options
Diffstat (limited to 'pastebinit/build')
-rwxr-xr-x | pastebinit/build/pastebinit.SlackBuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pastebinit/build/pastebinit.SlackBuild b/pastebinit/build/pastebinit.SlackBuild index fbdef925..46306eb0 100755 --- a/pastebinit/build/pastebinit.SlackBuild +++ b/pastebinit/build/pastebinit.SlackBuild @@ -118,23 +118,28 @@ echo "++" cd $TMP/tmp-$PRGNAM echo "Extracting the source archive(s) for $PRGNAM..." -tar -xvf ${SOURCE} +tar -zxvf ${SOURCE} cd ${PRGNAM}-${VERSION} + +# Fix for the new pastebin.com API. +cat $SRCDIR/pastebinit_pbc.diff | patch -p0 --verbose \ + 2>&1 | tee $OUTPUT/patch-${PRGNAM}.log + chown -R root:root . chmod -R u+w,go+r-w,a-s . echo Building ... +install -d $PKG/{etc/pastebin.d,/usr/bin,/usr/share/locale,/usr/man/man1} # Generate the language files: make -C po # Generate the manpage: -xmlto --skip-validation man pastebinit.xml +xmlto -o /usr/man/man1 --skip-validation man pastebinit.xml || true # Install the files: -install -d $PKG/{etc/pastebin.d,/usr/bin,/usr/share/locale,/usr/man/man1} install -p pastebinit $PKG/usr/bin/pastebinit cp -a pastebin.d/*.conf $PKG/etc/pastebin.d cp -a po/mo/* $PKG/usr/share/locale -gzip -9c pastebinit.1 > $PKG/usr/man/man1/pastebinit.1.gz +find $PKG/usr/man -type f -exec gzip -9 {} \; || true # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION |