aboutsummaryrefslogtreecommitdiffstats
path: root/main/psqlodbc/APKBUILD
blob: 96dfb44924eec2fa17fabb81b9040d12d7141f72 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=psqlodbc
pkgver=09.03.0400
pkgrel=0
pkgdesc="PostgreSQL ODBC driver"
url="http://www.postgresql.org"
arch="all"
license="GPL"
depends=
makedepends="postgresql-dev unixodbc-dev openssl-dev libtool"
subpackages=
source="https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-$pkgver.tar.gz"

_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"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}
md5sums="33d7020d30978089df3914bcbfa5049f  psqlodbc-09.03.0400.tar.gz"
sha256sums="de77dfa89dba0a159afc57b2e312ca6e9075dd92b761c7cc700c0450ba02b56b  psqlodbc-09.03.0400.tar.gz"
sha512sums="c33eec72c496c6dc24569130cf4463ce6855753bb05791f471b3ce8d89ce9ff6ac81056b427bda9badf47519ba8bc3b49012e3b64da69811c8fb48742aaaf606  psqlodbc-09.03.0400.tar.gz"