diff options
author | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2013-11-20 05:37:02 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2013-11-20 05:37:02 +0700 |
commit | 4e49b3a97e745e4470ec8e80790de254a934cf95 (patch) | |
tree | 04f273ceaa3fd530232efd01e371444c4f8a5b1f /development/nant/nant.SlackBuild | |
parent | f1ac57f36ed618a10591ccea9ffb187b2de8151f (diff) |
development/nant: Change to repackage binary package
The source package is not compatible with latest mono
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/nant/nant.SlackBuild')
-rw-r--r-- | development/nant/nant.SlackBuild | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/development/nant/nant.SlackBuild b/development/nant/nant.SlackBuild index ad82acdb6c703..e222129f5ae43 100644 --- a/development/nant/nant.SlackBuild +++ b/development/nant/nant.SlackBuild @@ -5,7 +5,7 @@ # Written by (Asaf) (asaf@lingnu.com) PRGNAM=nant -VERSION=${VERSION:-0.90} +VERSION=${VERSION:-0.92} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -28,7 +28,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION-bin.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -37,17 +37,18 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# Fix prefix declaration in pkgconfig file -patch -p1 < $CWD/fixup-nant_pc.diff +mkdir -p $PKG/usr/bin +mkdir -p $PKG/usr/share/NAnt -# Fix pkgconfig directory on x86_64 -[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/fixup-x86_64-pkgconfig_dir.diff - -make -make install DESTDIR=$PKG prefix=/usr +cp -R * $PKG/usr/share/NAnt +echo '/usr/bin/mono /usr/share/NAnt/bin/NAnt.exe "$@"' > $PKG/usr/bin/nant +chmod +x $PKG/usr/bin/nant mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mv $PKG/usr/share/NAnt/*.txt $PKG/usr/doc/$PRGNAM-$VERSION/ +mv $PKG/usr/share/NAnt/doc/* $PKG/usr/doc/$PRGNAM-$VERSION/ +mv $PKG/usr/share/NAnt/examples $PKG/usr/doc/$PRGNAM-$VERSION/ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |