summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpastebinit/build/pastebinit.SlackBuild10
1 files changed, 8 insertions, 2 deletions
diff --git a/pastebinit/build/pastebinit.SlackBuild b/pastebinit/build/pastebinit.SlackBuild
index aa459968..c8466293 100755
--- a/pastebinit/build/pastebinit.SlackBuild
+++ b/pastebinit/build/pastebinit.SlackBuild
@@ -30,7 +30,7 @@
# URL: http://www.stgraber.org/
# Needs: configobj
# Changelog:
-# 0.11-1: 13/Mar/2010 by Eric Hameleers <alien@slackware.com>
+# 1.0-1: 13/Mar/2010 by Eric Hameleers <alien@slackware.com>
# * Initial build.
#
# Run 'sh pastebinit.SlackBuild' to build a Slackware package.
@@ -124,11 +124,17 @@ chown -R root:root .
chmod -R u+w,go+r-w,a-s .
echo Building ...
+# Generate the language files:
make -C po
-install -d $PKG/{etc/pastebin.d,/usr/bin,/usr/share/locale}
+# Generate the manpage:
+xmlto --skip-validation man pastebinit.xml
+
+# 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 pastebin.1 > $PKG/usr/man/man1/pastebin.1.gz
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION