aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sqliteodbc/APKBUILD
blob: c5906a72c7c02963f1b0ac837ac0ce8ff9470f73 (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
# Contributor: Robert Boisvert <rdboisvert@gmail.com>
# Maintainer: Robert Boisvert <rdboisvert@gmail.com>
pkgname=sqliteodbc
pkgver=0.9993
pkgrel=0
pkgdesc="SQLite ODBC driver"
arch="all"
license="BSD"
makedepends="libtool sqlite-dev unixodbc-dev"
source="http://www.ch-werner.de/sqliteodbc/$pkgname-$pkgver.tar.gz"
url="http://www.ch-werner.de/sqliteodbc"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	update_config_sub || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	mkdir -p "$pkgdir/usr/lib"
	make DESTDIR="$pkgdir" install || return 1
	rm $pkgdir/usr/lib/*.la $pkgdir/usr/lib/*.a
}

md5sums="2a418fa3465d285f75218b619345cd53  sqliteodbc-0.9993.tar.gz"
sha256sums="1a9a1abbd4387440a56b888113cebea6b39a832a16b456f355c71da69190fa35  sqliteodbc-0.9993.tar.gz"
sha512sums="aeacb8630eb84940f8c5da8da62ca9a9449995ae300072ec192262e80a89064fb608db0b6d05aad49938beb48d6bd30c0c4694bef8980ece76b4ed3e459039c4  sqliteodbc-0.9993.tar.gz"