blob: a62a84a50343f7ddd7eed3016115bf20c86e22d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Vitalij Berdinskih <vitalij_r2 at outlook dot com>
# Contributor: Håvard Pettersson <mail@haavard.me>
# Contributor: John Trengrove <john@retrofilter.com>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: Andrejs Mivreņiks <gim at fastmail dot fm>
# Contributor: Vitaliy Berdinskikh ur6lad[at]i.ua
pkgname=sqlite-jdbc
pkgver=3.47.1.0
pkgrel=1
pkgdesc='JDBC driver for SQLite'
arch=('x86_64')
url='https://github.com/xerial/sqlite-jdbc'
license=('Apache')
depends=('java-runtime>=8')
makedepends=('maven')
source=("https://github.com/xerial/sqlite-jdbc/archive/${pkgver}.tar.gz")
md5sums=('ab855539168150db5a5cba89a9711bf3')
sha256sums=('0ae4b534cd5b8993bccb570b979ddddf32007cd214b9f32bd2610f065a164655')
prepare() {
# update SLF4J
cd ${pkgname}-${pkgver}
mvn versions:use-dep-version -Dincludes=org.slf4j:slf4j-api -DdepVersion=2.0.11 -DforceVersion=true
# remove unused sqlite binaries
cd src/main/resources/org/sqlite/native
find . ! -path "./Linux/$CARCH/*" -type f -delete
find . -type d -empty -delete
}
build() {
cd ${pkgname}-${pkgver}
mvn package -DskipTests
}
check() {
cd ${pkgname}-${pkgver}
mvn verify
}
package() {
cd ${pkgname}-${pkgver}/target
install -Dm644 "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}-${pkgver}.jar"
ln -s "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
}
# vim:set ts=2 sw=2 et:
|