summaryrefslogtreecommitdiff
path: root/.demeter
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-04-06 15:58:14 +0200
committerErich Eckner <git@eckner.net>2016-04-11 11:29:19 +0200
commit8eb10152dc9a6ba134e98e297bd3c5c55c5fdeeb (patch)
tree730778782a671715a057bfc0154889caa0858fb3 /.demeter
parent33bc2fb5a44f52422cfb39d13cadec396d5e0bf3 (diff)
downloadarchlinuxewe-8eb10152dc9a6ba134e98e297bd3c5c55c5fdeeb.tar.xz
demeter weiter (noch nicht fertig)
Diffstat (limited to '.demeter')
-rwxr-xr-x.demeter/PKGBUILD31
1 files changed, 23 insertions, 8 deletions
diff --git a/.demeter/PKGBUILD b/.demeter/PKGBUILD
index 954fa9207..233ad920f 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