Latest Perl SDL version, with new depencency ('perl-tie-simple') and renamed to 'perl-sdl'.

This commit is contained in:
Adrián Chaves Fernández (Gallaecio) 2011-03-28 19:48:44 +00:00
parent 32e97330dd
commit bb720b851c
3 changed files with 64 additions and 29 deletions

33
perl-sdl/PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=perl-sdl
pkgver=2.532
pkgrel=1
pkgdesc="Simple DirectMedia Layer for Perl."
arch=(i686 x86_64)
license=(LGPL)
url="http://sdl.perl.org"
depends=(perl-alien-sdl perl-tie-simple
sdl_{net,ttf,image,mixer,gfx,pango} mesa smpeg)
options=('!emptydirs')
replaces=(sdl_perl)
conflicts=(sdl_perl)
provides=("sdl_perl=$pkgver")
source=(http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/SDL-$pkgver.tar.gz)
md5sums=('8d389b10aa9c054788a8e37077d8eb4d')
package() {
cd $srcdir/SDL-$pkgver
perl Build.PL installdirs=vendor destdir=$pkgdir
perl Build
perl Build install
}

31
perl-tie-simple/PKGBUILD Normal file
View File

@ -0,0 +1,31 @@
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=perl-tie-simple
_realname=Tie-Simple
pkgver=1.03
pkgrel=1
pkgdesc="Variable ties made easier: much, much, much easier..."
arch=(any)
license=(PerlArtistic GPL)
depends=(perl)
url='http://search.cpan.org/dist/$_realname'
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/H/HA/HANENKAMP/$_realname-$pkgver.tar.gz")
md5sums=('198f7ec68c9b954251c4ed163ee112c7')
build() {
cd $srcdir/$_realname-$pkgver
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
make
}
package() {
cd $srcdir/$_realname-$pkgver
make DESTDIR="$pkgdir" install
}

View File

@ -1,29 +0,0 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
pkgname=sdl_perl
_realname=SDL_Perl
pkgver=2.2.6
pkgrel=2
pkgdesc="A Perl wrapper for SDL"
arch=('i686' 'x86_64')
license=('LGPL')
url="http://sdl.perl.org"
depends=('perl>=5.10.1' 'sdl_net' 'sdl_ttf' 'sdl_image>=1.2.8' 'sdl_mixer>=1.2.10'
'mesa' 'sdl_gfx>=2.0.20' 'smpeg')
makedepends=('perl-yaml')
options=(!emptydirs)
source=(http://search.cpan.org/CPAN/authors/id/K/KT/KTHAKORE/${_realname}-v${pkgver}.tar.gz)
md5sums=('445950ca7b9991f34ec792bbac8386b6')
build() {
cd "${srcdir}/${_realname}-v${pkgver}"
# install module in vendor directories
perl Build.PL installdirs=vendor destdir="${pkgdir}" \
--config man1ext=1p --config man3ext=3pm || return 1
perl Build || return 1
perl Build install || return 1
}