diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-15 11:36:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-06-15 20:07:15 +0000 |
commit | e73837308bc093ceeffbd1b887b32e83c6b2fca4 (patch) | |
tree | 1fe315ad79e8f2f2cf0cecd1e18c6c4f88d7fbce /main/lua-lyaml/APKBUILD | |
parent | 95a6aa527d50a397ef8c826000c80188a21482bf (diff) | |
download | aports-e73837308bc093ceeffbd1b887b32e83c6b2fca4.tar.bz2 aports-e73837308bc093ceeffbd1b887b32e83c6b2fca4.tar.xz |
main/lua-lyaml: upgrade to 6.1.3
Diffstat (limited to 'main/lua-lyaml/APKBUILD')
-rw-r--r-- | main/lua-lyaml/APKBUILD | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/main/lua-lyaml/APKBUILD b/main/lua-lyaml/APKBUILD index f0b1671c56..ff2edefec0 100644 --- a/main/lua-lyaml/APKBUILD +++ b/main/lua-lyaml/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> _pkgname=lyaml pkgname=lua-$_pkgname -pkgver=6.1 -pkgrel=1 +pkgver=6.1.3 +pkgrel=0 pkgdesc="LibYAML binding for Lua" url="https://github.com/gvvaughan/lyaml" arch="all" @@ -11,8 +11,8 @@ depends="" makedepends="yaml-dev" subpackages="" replaces="lua-yaml" -source="$pkgname-$pkgver.tar.gz::https://github.com/gvvaughan/$_pkgname/archive/release-v$pkgver.tar.gz" -builddir="$srcdir/$_pkgname-release-v$pkgver" +source="$_pkgname-$pkgver.tar.gz::https://github.com/gvvaughan/lyaml/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" _luaversions="5.1 5.2 5.3" for _v in $_luaversions; do @@ -24,21 +24,9 @@ build() { local lver; for lver in $_luaversions; do msg "Building for Lua $lver..." - mkdir "$builddir"/build-$lver - cd "$builddir"/build-$lver - - LUA="lua$lver" \ - LUA_INCLUDE="$(pkg-config --cflags lua$lver)" \ - ../configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + cp -r "$builddir" "$srcdir"/build-$lver + cd "$srcdir"/build-$lver + lua$lver build-aux/luke done } @@ -47,17 +35,16 @@ package() { } _subpackage() { - local lver="${subpkgname:3:3}" + local lver="${subpkgname%-lyaml}" + lver=${lver#lua} pkgdesc="$pkgdesc $lver" depends="lua$lver" install_if="$pkgname=$pkgver-r$pkgrel lua$lver" - cd "$builddir"/build-$lver + cd "$srcdir"/build-$lver - make DESTDIR="$subpkgdir" install || return 1 + lua$lver build-aux/luke PREFIX="$subpkgdir"/usr install rm -Rf "$subpkgdir"/usr/share/doc } -md5sums="e11c2bf29b539674dfc5b4a094550dc5 lua-lyaml-6.1.tar.gz" -sha256sums="7063e50dfcee25f87f1a29fc2d75d12e5d8fd83522a99936d51841c3f374851a lua-lyaml-6.1.tar.gz" -sha512sums="0730001fcd171f88a8fe8917f9fb8c403d5d7461dda8dfee73a555ac7899dc6c6042fda1ce0e69bb335ba0930ff650763a3e15b363ce61832bb3bb838de22bd6 lua-lyaml-6.1.tar.gz" +sha512sums="aa101680b181d733c8648e0c800aa381c426483dc1ff59b80a6d2a3c7a058aa27e2783849da0aaaaf323c01dc891626ff194c3a86937b47ab1a5418e89128be4 lyaml-6.1.3.tar.gz" |