aboutsummaryrefslogtreecommitdiffstats
path: root/main/psqlodbc/APKBUILD
blob: c968f5e8ad0dce0fce76fe9380f28e31a9439c1a (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.02.0100
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="ftp://ftp2.it.postgresql.org/mirrors/postgres//odbc/versions/src/$pkgname-$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="0d591c8f7233c863fd93f6c36316451a  psqlodbc-09.02.0100.tar.gz"
sha256sums="6701525030a8c927059f972ebd65e83a41f7f177228cd8e894654893d86cb93c  psqlodbc-09.02.0100.tar.gz"
sha512sums="5d2eae82596b3a120b00c140441c47af065a201236fef9aa086372f2207bab2f2bffee7d0db177a64c370118eaa4348509dcb3e99a40f564d26d4e938c57cc68  psqlodbc-09.02.0100.tar.gz"