# HG changeset patch # User Nathan Neulinger # Date 1427219106 0 # Node ID b295d522518cb005673ea12dd38d29314afa4a77 # Parent b5c9023ea1385ea7f92450739cbb6835c365f732 Add: perl-json - JSON diff -r b5c9023ea138 -r b295d522518c perl-json/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/perl-json/receipt Tue Mar 24 17:45:06 2015 +0000 @@ -0,0 +1,36 @@ +# SliTaz package receipt. + +PACKAGE="perl-json" +VERSION="2.90" +CATEGORY="development" +SHORT_DESC="Perl/CPAN Module JSON" +MAINTAINER="nneul@neulinger.org" +LICENSE="Artistic" +DEPENDS="perl" +BUILD_DEPENDS="perl" +SOURCE="JSON" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://search.cpan.org/dist/JSON/" +WGET_URL="http://www.cpan.org/authors/id/M/MA/MAKAMAKA/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + perl Makefile.PL && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $install/usr/lib $fs/usr + # remove perllocal.pod and .packlist + find ${fs} -name perllocal.pod -delete + find ${fs} -name .packlist -delete + + +} +