diff options
author | Dimitris Zlatanidis <d.zlatanidis@gmail.com> | 2014-05-14 17:29:59 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-05-14 17:29:59 +0700 |
commit | 74c0d2db4ddffbcae15389099f9e53575f033bf7 (patch) | |
tree | 3b368feeca048892dca63ad388203a6e400c64c8 /system/slpkg/slpkg.SlackBuild | |
parent | 641ac5e31c3ec46b5bf87e23063347abcfbf0b07 (diff) |
system/slpkg: Updated for version 1.1.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/slpkg/slpkg.SlackBuild')
-rw-r--r-- | system/slpkg/slpkg.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/system/slpkg/slpkg.SlackBuild b/system/slpkg/slpkg.SlackBuild index 0f29615f4fd44..bf3bb3deef564 100644 --- a/system/slpkg/slpkg.SlackBuild +++ b/system/slpkg/slpkg.SlackBuild @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slpkg -VERSION=${VERSION:-0.0.1} +VERSION=${VERSION:-1.1.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -60,7 +60,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -69,11 +69,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +# ignore pip install man page +#sed -i 's/'install'//' setup.py + python setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +mkdir -p $PKG/usr/man/man8 +gzip -9 man/$PRGNAM.8 +install -D -m0644 man/$PRGNAM.8.gz $PKG/usr/man/man8/$PRGNAM.8.gz + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.rst CHANGELOG LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |