From 7f8fd9b84bdc30df6272640334d0f53506fb7dc0 Mon Sep 17 00:00:00 2001 From: Atirut Wattanamongkol Date: Sun, 15 Oct 2023 21:53:40 +0700 Subject: [PATCH] Fixes for Z88DK --- z88dk-git/lure.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/z88dk-git/lure.sh b/z88dk-git/lure.sh index fc97ff9..9ed1083 100644 --- a/z88dk-git/lure.sh +++ b/z88dk-git/lure.sh @@ -1,33 +1,34 @@ name='z88dk-git' -version='21023.a09ee3d7a' -release=2 +version='21835.e89d1b4477' +release=3 desc='The development kit for Z80 computers' homepage='https://github.com/z88dk/z88dk' maintainer='Atirut Wattanamongkol ' architectures=('amd64') license=('MIT') -sources=('git+https://github.com/z88dk/z88dk?~recursive=true') +sources=('git+https://github.com/z88dk/z88dk?~recursive=true&~rev=e89d1b4477687747b500fbe0e25fc52fe35056a7') checksums=('SKIP') - -build_deps_ubuntu=('build-essential' 'bison' 'flex' 'libxml2-dev' 'subversion' 'zlib1g-dev' 'm4' 'ragel' 're2c' 'dos2unix' 'texinfo' 'texi2html' 'gdb' 'curl' 'perl' 'cpanminus' 'ccache' 'libboost-all-dev' 'libmodern-perl-perl' 'libyaml-perl' 'liblocal-lib-perl' 'libcapture-tiny-perl' 'libpath-tiny-perl' 'libtext-table-perl' 'libdata-hexdump-perl' 'libregexp-common-perl' 'libclone-perl' 'libfile-slurp-perl' 'make') +build_deps_ubuntu=('build-essential' 'bison' 'flex' 'libxml2-dev' 'subversion' 'zlib1g-dev' 'm4' 'ragel' 're2c' 'dos2unix' 'texinfo' 'texi2html' 'gdb' 'curl' 'perl' 'cpanminus' 'ccache' 'libboost-all-dev' 'libmodern-perl-perl' 'libyaml-perl' 'liblocal-lib-perl' 'libcapture-tiny-perl' 'libpath-tiny-perl' 'libtext-table-perl' 'libdata-hexdump-perl' 'libregexp-common-perl' 'libclone-perl' 'libfile-slurp-perl' 'pkg-config') version() { cd "$srcdir/z88dk" git-version } +prepare() { + cpanm --local-lib="$srcdir/perl5" App::Prove CPU::Z80::Assembler Data::Dump Data::HexDump File::Path List::Uniq Modern::Perl Object::Tiny::RW Regexp::Common Test::Harness Text::Diff Text::Table YAML::Tiny + eval $(perl -I "$srcdir/perl5/lib/perl5/" -Mlocal::lib) +} + build() { - export BUILD_SDCC=1 - export BUILD_SDCC_HTTP=1 cd "$srcdir/z88dk" - ./build.sh + export BUILD_SDCC=1 BUILD_SDCC_HTTP=1 + PREFIX="/usr" DESTDIR="$pkgdir" ./build.sh } package() { - eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)" - cpanm App::Prove File::Path CPU::Z80::Assembler Object::Tiny::RW List::Uniq YAML::Tiny cd "$srcdir/z88dk" - PREFIX="$pkgdir/usr/local" make install + PREFIX="/usr" DESTDIR="$pkgdir" make install }