development/CVSTools: Move cvslib.pl to private dir.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-03-31 11:44:19 -04:00 committed by Willy Sudiarto Raharjo
parent 438f832648
commit 3511400cf8
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -28,11 +28,14 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220330 bkw: Modified by SlackBuilds.org, BUILD=3: install cvslib.pl
# to a subdirectory instead of directly to /usr/share.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=CVSTools
VERSION=${VERSION:-21.1}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
@ -55,14 +58,15 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
chmod 644 *
sed -i '/cvslib\.pl/s,/usr/share,&/cvslib,' *
mkdir -p $PKG/usr/bin
install -o root -g root -m 755 \
checkpoint vers_string cvsver tarup commit cvssync \
$PKG/usr/bin
mkdir -p $PKG/usr/share
install -o root -g root -m 644 cvslib.pl $PKG/usr/share
mkdir -p $PKG/usr/share/cvslib
install -o root -g root -m 644 cvslib.pl $PKG/usr/share/cvslib
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $PKG/usr/doc/$PRGNAM-$VERSION