summaryrefslogtreecommitdiff
path: root/p5-alien-sdl/Pkgfile
blob: 815fa0289114b81da3d60d198d23183b9188483c (plain)
    1 # Description: Building, finding and using SDL binaries
    2 # URL: https://metacpan.org/release/Alien-SDL
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: libsdl p5-file-sharedir p5-capture-tiny p5-file-which p5-text-patch p5-archive-extract p5-archive-zip p5-module-build
    5 
    6 name=p5-alien-sdl
    7 _realname=Alien-SDL
    8 _author=FROGGS
    9 version=1.446
   10 release=1
   11 source=(https://cpan.metacpan.org/authors/id/${_author::1}/${_author::2}/$_author/$_realname-$version.tar.gz)
   12 
   13 build() {
   14 	cd $_realname-$version
   15 
   16 	# Workaround bug with --with-sdl-config
   17 	sed -i '/^GetOptions/d' Build.PL
   18 
   19 	perl Build.PL --with-sdl-config
   20 	perl Build
   21 	perl Build install installdirs=vendor destdir="$PKG"
   22 
   23 	find $PKG \( -name '.packlist' -o -name '*.pod' \) -delete
   24 	find $PKG -depth -empty -delete
   25 }

Generated by cgit