diff options
author | Alad Wenter | 2022-07-02 20:35:07 +0200 |
---|---|---|
committer | archie | 2022-07-03 19:24:43 +0200 |
commit | 35d4bedfb7f4452677a892b2554bb7e33c62bd0d (patch) | |
tree | 17e8f3bc45e0b958a10c7c0e3c8817b2d1b746be /PKGBUILD | |
parent | f65765086b64f97f015fb0eb8e2a7cc60f997831 (diff) | |
download | aur-35d4bedfb7f4452677a892b2554bb7e33c62bd0d.tar.gz |
don't vendor wxgtk3, add perl-lwp-protocol-https makedepends
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 9 insertions, 34 deletions
@@ -5,62 +5,37 @@ pkgname=perl-alien-wxwidgets _cpan_name=Alien-wxWidgets pkgver=0.69 -pkgrel=1 +pkgrel=2 pkgdesc="building, finding and using wxWidgets binaries" arch=('any') url="https://metacpan.org/release/${_cpan_name}" license=('GPL' 'PerlArtistic') depends=('perl>=5.10.0' 'wxgtk3' 'perl-module-pluggable') -makedepends=('perl-module-build') +makedepends=('perl-module-build' 'perl-lwp-protocol-https') options=(!emptydirs) -source=("http://www.cpan.org/modules/by-module/${_cpan_name%%-*}/${_cpan_name}-${pkgver}.tar.gz" -# 'https://rt.cpan.org/Ticket/Attachment/1400329/743429/wx-config-version-and-env.patch' -# 'https://rt.cpan.org/Ticket/Attachment/1239555/655334/Alien-wxWidgets-0.64-returnor.patch' - ) -sha256sums=('53224e4bbbefff4cf7b63ed9a62963893b9ffd4965d70d96710348f8676de249' -# '1d21142e0a60bec1a4fab11dc545f955' -# '0011e91d60a7a669426341687cb6a5e2' - ) -_src_dir='${_cpan_name}-${pkgver}' - -#prepare() { -# warning "If package contains gtk2_3_0_0_uni_gcc_3_4.pm it is an improper package - do not attempt to install it - report in comments instead" - -# HAX HAX HAX - hax first in PATH to replace /usr/bin -# Uncomment lines below to compile against wxgtk2.8 -# mkdir ${srcdir}/hax -# ln -s /usr/bin/wx-config-2.8 ${srcdir}/hax/wx-config -# export PATH="${srcdir}/hax:${PATH}" -### We are now patching issues, so compilation against 3.x is possible -# https://rt.cpan.org/Public/Bug/Display.html?id=94367 -# https://rt.cpan.org/Public/Bug/Display.html?id=87202 -# { -# eval cd "$_src_dir" -# patch < ${srcdir}/wx-config-version-and-env.patch -# patch ./lib/Alien/wxWidgets/Utility.pm < ${srcdir}/Alien-wxWidgets-0.64-returnor.patch -# } -#} +source=("http://www.cpan.org/modules/by-module/${_cpan_name%%-*}/${_cpan_name}-${pkgver}.tar.gz") +sha256sums=('53224e4bbbefff4cf7b63ed9a62963893b9ffd4965d70d96710348f8676de249') +_src_dir=${_cpan_name}-${pkgver} build() { # Setting these env variables overwrites any command-line-options we don't want... export PERL_MM_USE_DEFAULT=1 PERL_AUTOINSTALL=--skipdeps \ PERL_MM_OPT="INSTALLDIRS=vendor DESTDIR='$pkgdir'" \ PERL_MB_OPT="--installdirs vendor --destdir '$pkgdir'" \ + WX_CONFIG=/usr/bin/wx-config-gtk3 \ MODULEBUILDRC=/dev/null - warning "If build stage tries to pull and compile WX - interrupt as resulting package won\'t work" - eval cd "$_src_dir" + cd "$_src_dir" /usr/bin/perl Makefile.PL make } check () { - eval cd "$_src_dir" + cd "$_src_dir" make test } package () { - eval cd "$_src_dir" - pwd + cd "$_src_dir" make install # remove perllocal.pod and .packlist |