fix typo in help and manpage (--root option)
[spkg.git] / spkg.SlackBuild
blob45da8e3892f7d0bf1d1b7248238fab71c2dc3449
1 #!/bin/sh -e
3 CWD=`pwd`
4 VERSION=1.0rc7
6 rm -rf spkg-$VERSION
7 tar xzvf spkg-$VERSION.tar.gz
8 cd spkg-$VERSION
9 ./configure --prefix=/usr --mandir=/usr/man --enable-static-spkg=only
10 make
11 make install DESTDIR=$CWD/slack-pkg
12 gzip -9 $CWD/slack-pkg/usr/man/man8/spkg.8
13 ln -snf spkg.8.gz $CWD/slack-pkg/usr/man/man8/ipkg.8.gz
14 ln -snf spkg.8.gz $CWD/slack-pkg/usr/man/man8/upkg.8.gz
15 ln -snf spkg.8.gz $CWD/slack-pkg/usr/man/man8/dpkg.8.gz
16 ln -snf spkg.8.gz $CWD/slack-pkg/usr/man/man8/lpkg.8.gz
17 rm $CWD/slack-pkg/usr/man/man8/?pkg.8
18 mkdir -p $CWD/slack-pkg/install
19 cat slack-desc > $CWD/slack-pkg/install/slack-desc
20 cd $CWD/slack-pkg
21 makepkg -l y -c n $CWD/spkg-$VERSION-i486-1.tgz
22 cd $CWD
23 rm -rf spkg-$VERSION slack-pkg