diff options
author | Andy Weidenbaum | 2016-09-10 10:53:04 -0700 |
---|---|---|
committer | Andy Weidenbaum | 2016-09-10 10:53:04 -0700 |
commit | 2d53219730e33450b5089e0f98d04e8c74ba9e27 (patch) | |
tree | 1302bb8687a816eca881804ed48d4dc5f355328f /PKGBUILD | |
parent | 34d2cfe27e23ea8268e303270bff2c177a85a74e (diff) | |
download | aur-2d53219730e33450b5089e0f98d04e8c74ba9e27.tar.gz |
increment pkgrel to 3; update build process
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -2,12 +2,12 @@ pkgname=perl6-linenoise pkgver=0.1.0 -pkgrel=2 +pkgrel=3 pkgdesc="Bindings to linenoise" arch=('i686' 'x86_64') -depends=('perl6' 'perl6-native-resources') +depends=('perl6') checkdepends=('perl') -makedepends=('alacryd' 'git' 'make') +makedepends=('alacryd' 'git' 'make' 'perl6-librarymake') groups=('perl6') url="https://github.com/hoelzro/p6-linenoise" license=('MIT') @@ -18,8 +18,15 @@ build() { cd "$srcdir/$pkgname-$pkgver" msg2 'Building...' - perl6 -M Native::Resources::Build \ - -e 'make("$*CWD", "$*CWD/resources/lib", :libname<linenoise>)' + mkdir -p blib/lib + cat > build.p6 <<'EOF' +my $workdir = $*CWD; +my %vars = get-vars("$workdir/blib/lib"); +%vars<helper> = 'resources/libraries/' ~ $*VM.platform-library-name('liblinenoise'.IO); +process-makefile("$workdir", %vars); +shell(%vars<MAKE>); +EOF + perl6 -MLibraryMake build.p6 } check() { @@ -52,5 +59,7 @@ package() { msg2 'Cleaning up pkgdir...' rm -f "$pkgdir/usr/share/perl6/vendor/version" - find "$pkgdir" -type f -name "*.lock" -exec rm '{}' \; + find "$pkgdir" -type f -name "*.lock" -exec rm '{}' + + find "$pkgdir" -type f -print0 -exec \ + sed -i -e "s,$pkgdir,,g" -e "s,$srcdir,,g" '{}' + } |