Received: from wolfsden.cz (wolfsden.cz [37.205.8.62]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 6370A7819B0 for <~alpine/aports@lists.alpinelinux.org>; Wed, 19 Feb 2020 20:52:17 +0000 (UTC) Received: by wolfsden.cz (Postfix, from userid 110) id 7A6561BC6F9; Wed, 19 Feb 2020 20:52:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on wolfsden X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_ALL,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 038AA1BD28A; Wed, 19 Feb 2020 20:52:14 +0000 (UTC) From: Wolf To: ~alpine/aports@lists.alpinelinux.org Cc: Wolf Subject: [PATCH v2] Provide symlinks for lua's .pc files Date: Wed, 19 Feb 2020 21:52:13 +0100 Message-Id: <20200219205213.302120-1-wolf@wolfsden.cz> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Debian provides multiple aliases for lua's pkg-config package. In interest of compatibility, we should do the same. This commit introduces symlinks for lua53, lua-5.3, lua52 and lua-5.2 to match what debian provides. --- - Use ${_luaver//./} insteadd of subshell - Bump pkgrel main/lua5.2/APKBUILD | 8 ++++++-- main/lua5.3/APKBUILD | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/main/lua5.2/APKBUILD b/main/lua5.2/APKBUILD index e5df917276..f34c3f10fc 100644 --- a/main/lua5.2/APKBUILD +++ b/main/lua5.2/APKBUILD @@ -2,7 +2,7 @@ pkgname=lua5.2 pkgver=5.2.4 _luaver=${pkgname#lua} -pkgrel=7 +pkgrel=8 pkgdesc="Powerful light-weight programming language" url="https://www.lua.org/" arch="all" @@ -119,7 +119,11 @@ Cflags: -I\${includedir} # (end of lua$_luaver.pc) EOF - + # lua52.pc -> lua5.2.pc + ln -s lua$_luaver.pc \ + "$pkgdir"/usr/lib/pkgconfig/lua${_luaver//./}.pc + # lua-5.2.pc -> lua5.2.pc + ln -s lua$_luaver.pc "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc } dev() { diff --git a/main/lua5.3/APKBUILD b/main/lua5.3/APKBUILD index b1baf7b75a..5da074a6a6 100644 --- a/main/lua5.3/APKBUILD +++ b/main/lua5.3/APKBUILD @@ -3,7 +3,7 @@ pkgname=lua5.3 _pkgname=lua pkgver=5.3.5 _luaver=${pkgname#lua} -pkgrel=2 +pkgrel=3 pkgdesc="Powerful light-weight programming language" url="https://www.lua.org/" arch="all" @@ -120,7 +120,11 @@ package() { # (end of lua$_luaver.pc) EOF - + # lua53.pc -> lua5.3.pc + ln -s lua$_luaver.pc \ + "$pkgdir"/usr/lib/pkgconfig/lua${_luaver//./}.pc + # lua-5.3.pc -> lua5.3.pc + ln -s lua$_luaver.pc "$pkgdir"/usr/lib/pkgconfig/lua-$_luaver.pc } dev() { -- 2.25.0