wok-next annotate perl-alien-sdl/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | f17e1f86f546 |
children |
rev | line source |
---|---|
al@21026 | 1 # SliTaz package receipt v2. |
al@21026 | 2 |
al@21068 | 3 ORIGIN="Alien-SDL" |
al@21026 | 4 PACKAGE="perl-alien-sdl" |
al@21026 | 5 VERSION="1.446" |
al@21068 | 6 AUTHOR="FROGGS" |
al@21026 | 7 CATEGORY="perl" |
al@21026 | 8 SHORT_DESC="Alien::SDL - building, finding and using SDL binaries" |
al@21026 | 9 MAINTAINER="al.bobylev@gmail.com" |
al@21068 | 10 LICENSE="Perl" |
al@21068 | 11 WEB_SITE="https://metacpan.org/release/$ORIGIN" |
al@21068 | 12 HOST_ARCH="any" |
al@21068 | 13 REPOLOGY="${PACKAGE/-/:}" |
al@21026 | 14 |
al@21068 | 15 TARBALL="$ORIGIN-$VERSION.tar.gz" |
al@21068 | 16 WGET_URL="https://cpan.metacpan.org/authors/id/${AUTHOR:0:1}/${AUTHOR:0:2}/$AUTHOR/$TARBALL" |
al@21026 | 17 |
al@21087 | 18 DEPENDS_std="perl perl-capture-tiny perl-file-sharedir perl-file-which sdl" |
al@21068 | 19 BUILD_DEPENDS="$DEPENDS_std perl-module-build perl-archive-extract \ |
al@21087 | 20 perl-text-patch perl-archive-zip sdl-dev" |
al@21026 | 21 |
al@21087 | 22 # TODO: rebuild if sdl-config in sdl-dev changed |
al@21026 | 23 |
al@21026 | 24 compile_rules() { |
al@21026 | 25 # Workaround bug with --with-sdl-config |
al@21026 | 26 sed -i '/^GetOptions/d' Build.PL |
al@21026 | 27 |
al@21026 | 28 perl Build.PL --with-sdl-config && |
al@21026 | 29 perl Build && |
al@21026 | 30 perl Build install installdirs=vendor destdir=$install && |
al@21026 | 31 |
al@21026 | 32 chmod -R u+w $install |
al@21026 | 33 } |