blob: c83effb81f6c5b588e41f21da0df941f203ec160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
diff -ur cpan2tgz-0.6.2-old/buildslackpkg.sh cpan2tgz-0.6.2/buildslackpkg.sh
--- cpan2tgz-0.6.2-old/buildslackpkg.sh 2007-06-18 00:11:50.000000000 -0400
+++ cpan2tgz-0.6.2/buildslackpkg.sh 2008-04-25 19:02:51.000000000 -0400
@@ -1,10 +1,13 @@
#!/bin/sh
-DESTINATION=/tmp/$$
+PKG=/tmp/SBo/package-cpan2tgz
+OUTPUT=/tmp
+DESTINATION=$PKG
VERSION=`grep VERSION cpan2tgz | awk '{print $4}'|cut -f2 -d\'`
PKGNAME=cpan2tgz
+TAG=_SBo
-perl Makefile.PL
+perl Makefile.PL INSTALLDIRS=vendor
make
chown -R root.root .
find . -perm 777 -exec chmod 755 {} \;
@@ -37,6 +40,7 @@
chmod 755 ./usr/bin/*
fi
chmod 644 ./usr/man/man?/*
+ gzip -9 ./usr/man/man?/*
rmdir ./usr/share
mkdir install
@@ -51,8 +55,6 @@
rm $PERLLOCALPOD
fi
- echo "perl" > ./install/slack-required
-
cat >./install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
@@ -73,7 +75,7 @@
${PKGNAME}: http://software.jaos.org/
${PKGNAME}:
EOF
- makepkg -l y -c n /usr/src/${PKGNAME}-${VERSION}-noarch-1.tgz
+ makepkg -l y -c n ${OUTPUT}/${PKGNAME}-${VERSION}-noarch-1$TAG.tgz
)
make distclean
|