From 8eb10152dc9a6ba134e98e297bd3c5c55c5fdeeb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 6 Apr 2016 15:58:14 +0200 Subject: demeter weiter (noch nicht fertig) --- .demeter/PKGBUILD | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.demeter/PKGBUILD b/.demeter/PKGBUILD index 954fa920..233ad920 100755 --- a/.demeter/PKGBUILD +++ b/.demeter/PKGBUILD @@ -7,7 +7,10 @@ arch=('any') url="https://bruceravel.github.io/demeter" license=('BSD') groups=() -depends=('xraylarch') +depends=( + 'ifeffit' + 'perl-module-build' +) makedepends=() checkdepends=() optdepends=() @@ -21,24 +24,36 @@ source=( ) sha256sums=('f85262921e9eb646c7989ee73da760edc5fa27d5b97d1a4b3e597cd750920d8a') -package() { +prepare() { cd ${pkgname}-${pkgver} + rm t/t -ls - - perl ./Build.PL +} -ls +build() { + ( export PERL_MM_USE_DEFAULT=1 PERL5LIB="" \ + PERL_AUTOINSTALL=--skipdeps \ + PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ + PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + MODULEBUILDRC=/dev/null + cd ${pkgname}-${pkgver} + perl ./Build.PL ./Build + ) +} -ls +check() { + cd ${pkgname}-${pkgver} ./Build test -ls +} + +package() { + cd ${pkgname}-${pkgver} ./Build install --help # sed "s|DEBUG = False|DEBUG = True|" -i setup.py -- cgit v1.2.3-70-g09d2