[arch-commits] Commit in luaexpat/repos (2 files)

Daurnimator daurnimator at archlinux.org
Thu Jul 9 13:38:10 UTC 2020


    Date: Thursday, July 9, 2020 @ 13:38:10
  Author: daurnimator
Revision: 661821

archrelease: copy trunk to community-staging-x86_64

Added:
  luaexpat/repos/community-staging-x86_64/
  luaexpat/repos/community-staging-x86_64/PKGBUILD
    (from rev 661820, luaexpat/trunk/PKGBUILD)

----------+
 PKGBUILD |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)

Copied: luaexpat/repos/community-staging-x86_64/PKGBUILD (from rev 661820, luaexpat/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-09 13:38:10 UTC (rev 661821)
@@ -0,0 +1,67 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Lucas Hermann Negri <kkndrox at gmail.com>
+
+pkgbase=luaexpat
+pkgname=(lua-expat lua51-expat lua52-expat lua53-expat)
+pkgver=1.3.0
+pkgrel=5
+pkgdesc='SAX XML parser based on the Expat library'
+arch=('x86_64')
+url='http://matthewwild.co.uk/projects/luaexpat/'
+license=('MIT')
+depends=('expat')
+makedepends=('gcc' 'lua' 'lua51' 'lua52' 'lua53')
+source=("http://matthewwild.co.uk/projects/luaexpat/luaexpat-$pkgver.tar.gz")
+sha512sums=('91884653310e2dc89ade6d1653875ac8607640a21853d3ccb1fd0f833812e41981fad5c40101732ec249104d2c50c9a332208d1e44423b8428065a223c60b4ae')
+
+prepare() {
+  cp -a $pkgbase-$pkgver $pkgbase-$pkgver-51
+  cp -a $pkgbase-$pkgver $pkgbase-$pkgver-52
+  cp -a $pkgbase-$pkgver $pkgbase-$pkgver-53
+}
+
+build() {
+  # 5.1
+  cd "$srcdir"/$pkgbase-$pkgver-51
+  make LUA_V=5.1 COMMON_CFLAGS="$CPPFLAGS -fPIC"
+
+  # 5.2
+  cd "$srcdir"/$pkgbase-$pkgver-52
+  make LUA_V=5.2 COMMON_CFLAGS="$CPPFLAGS -fPIC"
+
+  # 5.3
+  cd "$srcdir"/$pkgbase-$pkgver-53
+  make LUA_V=5.3 COMMON_CFLAGS="$CPPFLAGS -fPIC"
+
+  # 5.4
+  cd "$srcdir"/$pkgbase-$pkgver
+  make LUA_V=5.4 COMMON_CFLAGS="$CPPFLAGS -fPIC"
+}
+
+package_lua-expat() {
+  cd $pkgbase-$pkgver
+  make LUA_V=5.4 DESTDIR="$pkgdir" install
+  install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
+}
+
+package_lua51-expat() {
+  replaces=('luaexpat')
+  conflicts=('luaexpat')
+
+  cd $pkgbase-$pkgver-51
+  make LUA_V=5.1 DESTDIR="$pkgdir" install
+  install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
+}
+
+package_lua52-expat() {
+  cd $pkgbase-$pkgver-52
+  make LUA_V=5.2 DESTDIR="$pkgdir" install
+  install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
+}
+
+package_lua53-expat() {
+  cd $pkgbase-$pkgver-53
+  make LUA_V=5.3 DESTDIR="$pkgdir" install
+  install -Dm0644 doc/us/license.html "$pkgdir/usr/share/licenses/$pkgname/license.html"
+}


More information about the arch-commits mailing list