[arch-commits] Commit in lua51-dbi/trunk (PKGBUILD)

Sergej Pupykin spupykin at archlinux.org
Wed Nov 7 09:45:00 UTC 2018


    Date: Wednesday, November 7, 2018 @ 09:44:59
  Author: spupykin
Revision: 402580

upgpkg: lua51-dbi 0.7.1-1

Modified:
  lua51-dbi/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-07 09:41:33 UTC (rev 402579)
+++ PKGBUILD	2018-11-07 09:44:59 UTC (rev 402580)
@@ -2,11 +2,11 @@
 # Maintainer: Robert Knauer <robert at privatdemail.net>
 
 pkgname=lua51-dbi
-pkgver=0.5
-pkgrel=3
+pkgver=0.7.1
+pkgrel=1
 pkgdesc="Database interface library for Lua (5.1)"
 arch=('x86_64')
-url="https://code.google.com/archive/p/luadbi/"
+url="https://github.com/mwild1/luadbi"
 license=('MIT')
 makedepends=('sqlite3' 'libmariadbclient' 'postgresql')
 depends=('lua51')
@@ -13,21 +13,16 @@
 optdepends=('sqlite3: sqlite3 Support'
             'postgresql-libs: postgresql Support'
             'libmariadbclient: mysql Support')
-source=("https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/luadbi/luadbi.$pkgver.tar.gz")
-sha1sums=('c8c650c168599e3ac97634a5ffb28aeaaa4fb635')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mwild1/luadbi/archive/v$pkgver.tar.gz")
+sha1sums=('992c322b09e8a109c45aae938c14303a6b28720c')
 
-prepare() {
-  sed -i 's|#!/usr/bin/lua|#!/usr/bin/lua5.1|g' DBI.lua
-  sed -i 's|-I /usr/include/postgresql/|-I /usr/include/postgresql/server/|g' Makefile
-}
-
 build() {
+  cd "$srcdir"/luadbi-$pkgver
   make free
 }
 
 package() {
-  install -Dm644 DBI.lua "${pkgdir}/usr/share/lua/5.1/DBI.lua"
-  install -dm755 "${pkgdir}/usr/lib/lua/5.1/"
-  install -Dm644 *.so "${pkgdir}/usr/lib/lua/5.1/"
+  cd "$srcdir"/luadbi-$pkgver
+  make install_free DESTDIR="$pkgdir"
   install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
 }


More information about the arch-commits mailing list