]> saetta.ns0.it Git - msys2/commitdiff
instantclient-rt: nuovo pacchetto.
authorAndrea Zagli <andrea.zagli@email.it>
Thu, 6 Apr 2017 13:31:24 +0000 (15:31 +0200)
committerAndrea Zagli <andrea.zagli@email.it>
Thu, 6 Apr 2017 13:31:24 +0000 (15:31 +0200)
packages/mingw-w64-instantclient-rt/PKGBUILD [new file with mode: 0644]

diff --git a/packages/mingw-w64-instantclient-rt/PKGBUILD b/packages/mingw-w64-instantclient-rt/PKGBUILD
new file mode 100644 (file)
index 0000000..fb3e3fd
--- /dev/null
@@ -0,0 +1,39 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_basename=instantclient
+_realname=instantclient-rt
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=11.2.0.4.0
+pkgrel=1
+arch=('any')
+pkgdesc="Light replacement for the Oracle client (runtime) (mingw-w64)"
+depends=()
+makedepends=("rsync"
+             "unzip")
+options=('!strip')
+license=("Oracle")
+url="http://saetta.ns0.it/"
+
+case "$CARCH" in
+  i686)
+       filename=${_basename}-basiclite-nt-${pkgver}.zip
+       ;;
+  x86_64)
+       filename=${_basename}-basiclite-windows.x64-${pkgver}.zip
+       ;;
+esac
+
+package() {
+  cd "${srcdir}/.."
+
+  rsync -av --progress andreaz@saetta.ns0.it:/home/andreaz/Scaricati/oracle/${filename} .
+
+  unzip -o -d "${srcdir}/$CARCH" ${filename}
+
+  cd "${srcdir}/$CARCH/${_basename}_11_2"
+
+  install -d "${pkgdir}${MINGW_PREFIX}/bin"
+  install -t "${pkgdir}${MINGW_PREFIX}/bin" *.dll
+
+  cp -f "${pkgdir}${MINGW_PREFIX}/bin/oci.dll" "${pkgdir}${MINGW_PREFIX}/bin/liboci.dll"
+}