aboutsummaryrefslogtreecommitdiffstats
path: root/main/unixodbc/APKBUILD
blob: 45237fa26ccf92f2e7a119bf096cdaf40214aec9 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=unixodbc
pkgver=2.3.2
pkgrel=0
pkgdesc="ODBC is an open specification to access Data Sources"
url="http://www.unixodbc.org/"
arch="all"
license="GPL2"
depends=
makedepends="readline-dev"
subpackages="$pkgname-dev"
source="http://www.unixodbc.org/unixODBC-${pkgver}.tar.gz"

_builddir="$srcdir/unixODBC-$pkgver"

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

build() {
	cd "$_builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls \
		--enable-gui=no \
		|| return 1
	make || return 1
}

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

}

md5sums="5e4528851eda5d3d4aed249b669bd05b  unixODBC-2.3.2.tar.gz"
sha256sums="9c3459742f25df5aa3c10a61429bde51a6d4f11552c03095f1d33d7eb02b5c9a  unixODBC-2.3.2.tar.gz"
sha512sums="31d705bf3dcaff6707d5680235b34e4d265a084b1de9e1b2ed3bbee1e1dfefdb4437fe3e1736b84e446d1927ec7622296d9e9b129052cb35f4b63b0bd79ccd13  unixODBC-2.3.2.tar.gz"