[arch-commits] Commit in perl-dbd-sqlite/repos (3 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Sun May 29 11:12:20 UTC 2022
Date: Sunday, May 29, 2022 @ 11:12:20
Author: foutrelis
Revision: 446841
archrelease: copy trunk to staging-x86_64
Added:
perl-dbd-sqlite/repos/staging-x86_64/
perl-dbd-sqlite/repos/staging-x86_64/PKGBUILD
(from rev 446840, perl-dbd-sqlite/trunk/PKGBUILD)
perl-dbd-sqlite/repos/staging-x86_64/libsqlite.patch
(from rev 446840, perl-dbd-sqlite/trunk/libsqlite.patch)
-----------------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
libsqlite.patch | 11 +++++++++++
2 files changed, 60 insertions(+)
Copied: perl-dbd-sqlite/repos/staging-x86_64/PKGBUILD (from rev 446840, perl-dbd-sqlite/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2022-05-29 11:12:20 UTC (rev 446841)
@@ -0,0 +1,49 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=perl-dbd-sqlite
+pkgver=1.70
+pkgrel=2
+pkgdesc="Self-contained RDBMS in a DBI driver"
+arch=('x86_64')
+url="https://search.cpan.org/dist/DBD-SQLite"
+license=('GPL' 'PerlArtistic')
+depends=('perl-dbi' 'sqlite')
+source=("https://www.cpan.org/authors/id/I/IS/ISHIGAKI/DBD-SQLite-$pkgver.tar.gz"
+ $pkgname-sqlite-3.37.patch::https://github.com/DBD-SQLite/DBD-SQLite/commit/ba4f472e7372.patch
+ libsqlite.patch)
+sha512sums=('163d53a8a214202a39b346ae023f9d10255c69dde537bc764a4ef312b62ef7b02ae1400e6c1a59d0483fd98abba6c36939214c13f5d9b3a2727c41753ba59060'
+ 'ed468728a6a1d1e7228ccb8df9fd14ad0c22ae7b5e1b9e7bb32352e4e34794684bcd570da322a94f34e8e967d6155520c4f4652c0ec2f4d0fc0aee6f89314ec7'
+ 'cf492402f9127c40130c052a6b3f78e86abc0342385130be386aa12e23b1166f20deac50eee1dcc1e43598ba5785d0a218f2cb0a6bb7f5dd7f7c0fc3220bd2bb')
+
+prepare() {
+ cd DBD-SQLite-$pkgver
+
+ # Ensure that we can never ever build this. If the perl module links against
+ # the system lib this won't matter, if it does not, it will fail during
+ # make test.
+ rm sqlite3.c
+
+ # https://github.com/DBD-SQLite/DBD-SQLite/issues/92
+ patch -Np1 -i ../$pkgname-sqlite-3.37.patch
+
+ # Makefile asks us to patch this to allow to link with system sqlite...
+ patch -i "$srcdir/libsqlite.patch"
+}
+
+build() {
+ cd DBD-SQLite-$pkgver
+
+ # USE_LOCAL_SQLITE=0 disables use of the bundled sqlite
+ perl Makefile.PL INSTALLDIRS=vendor USE_LOCAL_SQLITE=0
+ make
+}
+
+check() {
+ cd DBD-SQLite-$pkgver
+ make test
+}
+
+package() {
+ cd DBD-SQLite-$pkgver
+ make install DESTDIR="$pkgdir"
+}
Copied: perl-dbd-sqlite/repos/staging-x86_64/libsqlite.patch (from rev 446840, perl-dbd-sqlite/trunk/libsqlite.patch)
===================================================================
--- staging-x86_64/libsqlite.patch (rev 0)
+++ staging-x86_64/libsqlite.patch 2022-05-29 11:12:20 UTC (rev 446841)
@@ -0,0 +1,11 @@
+--- Makefile.PL.orig 2018-12-19 20:08:13.433144871 +0100
++++ Makefile.PL 2018-12-19 20:07:37.546242667 +0100
+@@ -129,7 +129,7 @@
+ # a system sqlite is also sophisticated enough to have a patching system
+ # that can change the if ( 0 ) to if ( 1 )
+ my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc);
+-if ( 0 ) {
++if ( 1 ) {
+ require File::Spec;
+ if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) {
+ $sqlite_base =~ /=(.*)/;
More information about the arch-commits
mailing list