summaryrefslogtreecommitdiff
path: root/multimedia/xmltv/xmltv.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/xmltv/xmltv.SlackBuild')
-rw-r--r--multimedia/xmltv/xmltv.SlackBuild17
1 files changed, 11 insertions, 6 deletions
diff --git a/multimedia/xmltv/xmltv.SlackBuild b/multimedia/xmltv/xmltv.SlackBuild
index fd3b64ed8b..866e672fe9 100644
--- a/multimedia/xmltv/xmltv.SlackBuild
+++ b/multimedia/xmltv/xmltv.SlackBuild
@@ -21,18 +21,19 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-set -e
-
PRGNAM=xmltv
-VERSION=0.5.50
+VERSION=0.5.51
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -40,11 +41,15 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
perl Makefile.PL -default
make
-make pure_install DESTDIR=$PKG/
+make pure_vendor_install DESTDIR=$PKG/
mv $PKG/usr/share/man $PKG/usr
rmdir $PKG/usr/share
@@ -57,7 +62,7 @@ rmdir $PKG/usr/share
# Remove perlocal.pod and .packlist from $PKG; other empty directories
( cd $PKG
find . -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" | xargs rm -f
- rm -rf usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/
+# rm -rf usr/lib/perl5/site_perl/5.8.8/i486-linux-thread-multi/
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION