blob: 264561ceb353e659bec0927a0f4a569acf3591e0 (
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
|
# Maintainer: Miguel Revilla <yo at miguelrevilla dot com>
pkgname=libodb-oracle
pkgver=2.5.0b27
_pkgver=2.5.0-b.27
pkgrel=1
pkgdesc="The ODB Oracle runtime library"
url="https://www.codesynthesis.com/products/odb/"
arch=('i686' 'x86_64')
depends=('build2' 'oracle-instantclient-sdk' 'oracle-instantclient-sqlplus' 'unixodbc' 'libodb')
options=('!libtool')
license=('custom')
build() {
cd "${srcdir}"
mkdir -p "${srcdir}/${pkgname}-${pkgver}"
cd "${srcdir}/${pkgname}-${pkgver}"
GPPVER="$(${CXX:-g++} --version | grep 'g++ (GCC)' | sed 's/g++ (GCC) //' | sed 's/\s.*$//')"
bpkg create -d gcc-${GPPVER} cc \
config.cxx=${CXX:-g++} \
config.cc.coptions="-O3 $CXXFLAGS" \
config.bin.lib=shared \
config.install.root=${pkgdir}/usr \
config.install.relocatable=true
cd gcc-${GPPVER}
bpkg build --trust-yes ${pkgname}/${_pkgver}@https://pkg.cppget.org/1/beta ?sys:libodb
}
package() {
GPPVER="$(${CXX:-g++} --version | grep 'g++ (GCC)' | sed 's/g++ (GCC) //' | sed 's/\s.*$//')"
cd "${srcdir}/${pkgname}-${pkgver}/gcc-${GPPVER}"
bpkg install ${pkgname}
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/
mv ${pkgdir}/usr/share/doc/${pkgname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/
}
|