2019-10-16 23:43:55 +00:00
|
|
|
# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
|
2019-02-14 14:42:54 +00:00
|
|
|
# Contributor: Joe George <joe at externl dot com>
|
|
|
|
# Contributor: Daniel Spies <ds20150201aur at pskx dot net>
|
|
|
|
# Contributor: Otto Allmendinger <otto.allmendinger@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - fix 32-bit lib packaging
|
2019-09-29 18:17:30 +00:00
|
|
|
# - drop zeroc-ice-java due to gradle FTBFS
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2019-07-07 00:10:12 +00:00
|
|
|
highmem=1
|
|
|
|
|
2019-09-29 18:17:30 +00:00
|
|
|
pkgname=zeroc-ice
|
2020-06-21 04:04:20 +00:00
|
|
|
pkgver=3.7.4
|
2020-08-24 19:21:29 +00:00
|
|
|
pkgrel=2
|
2019-02-14 14:42:54 +00:00
|
|
|
pkgdesc="An object-oriented middleware that provides RPC functionality"
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://zeroc.com"
|
|
|
|
license=(GPL custom:ice)
|
2019-09-29 18:17:30 +00:00
|
|
|
makedepends=(bzip2)
|
2019-02-14 14:42:54 +00:00
|
|
|
depends=(mcpp lmdb)
|
|
|
|
source=(
|
|
|
|
"ice-${pkgver}.tar.gz::https://github.com/zeroc-ice/ice/archive/v${pkgver}.tar.gz"
|
|
|
|
"ice-packaging-${pkgver}.tar.gz::https://github.com/zeroc-ice/ice-packaging/archive/v${pkgver}.tar.gz"
|
|
|
|
zeroc-ice.sysusers
|
2020-06-21 04:04:20 +00:00
|
|
|
java14.patch
|
2019-02-14 14:42:54 +00:00
|
|
|
)
|
2020-06-21 04:04:20 +00:00
|
|
|
sha256sums=('57f200bd2916799bce12960e579d9f9e5b6a9801addaf93d97bb4ce15c760a44'
|
|
|
|
'957efa66557fe1a9abcc2b6c61e1d63d9880c990cf884f7a2b230ba65dd24426'
|
|
|
|
'5fdbb1ed753e84e6b49c529e171af848e74a8890fe485dfe1d2bbec3c198dd90'
|
|
|
|
'6da6def608b170b26d13dc4cbe3447b32aa942c629ef43388f801970965ed2c8')
|
2019-02-14 14:42:54 +00:00
|
|
|
|
|
|
|
_make_args=(
|
|
|
|
"OPTIMIZE=yes"
|
|
|
|
"USR_DIR_INSTALL=yes"
|
|
|
|
"prefix=/usr"
|
|
|
|
"CONFIGS=shared cpp11-shared"
|
|
|
|
"SKIP=slice2py"
|
|
|
|
)
|
|
|
|
|
2020-06-21 04:04:20 +00:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}"/ice-${pkgver}
|
|
|
|
patch -Np1 -i "${srcdir}"/java14.patch
|
|
|
|
}
|
|
|
|
|
2019-02-14 14:42:54 +00:00
|
|
|
build() {
|
2020-01-25 05:04:37 +00:00
|
|
|
cd "${srcdir}"/ice-${pkgver}
|
2019-09-29 18:17:30 +00:00
|
|
|
make "${_make_args[@]}" "LANGUAGES=cpp"
|
2019-02-14 14:42:54 +00:00
|
|
|
}
|
|
|
|
|
2019-09-29 18:17:30 +00:00
|
|
|
package() {
|
2019-02-14 14:42:54 +00:00
|
|
|
backup=("etc/glacier2router.conf"
|
|
|
|
"etc/icegridnode.conf"
|
|
|
|
"etc/icegridregistry.conf"
|
|
|
|
)
|
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
cd "${srcdir}"/ice-${pkgver}
|
2019-02-14 14:42:54 +00:00
|
|
|
|
|
|
|
make install "${_make_args[@]}" DESTDIR="${pkgdir}" "LANGUAGES=cpp"
|
2020-01-25 05:04:37 +00:00
|
|
|
install -Dm644 "${srcdir}"/ice-${pkgver}/ICE_LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
rm -f "${pkgdir}"/usr/share/Ice-${pkgver}/LICENSE
|
|
|
|
rm -f "${pkgdir}"/usr/share/Ice-${pkgver}/ICE_LICENSE
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2019-07-06 22:47:30 +00:00
|
|
|
if [ $CARCH == "aarch64" ]; then
|
2020-01-25 05:04:37 +00:00
|
|
|
rm -df "${pkgdir}"/usr/lib/
|
|
|
|
mv "${pkgdir}"/usr/lib64/ "${pkgdir}"/usr/lib/
|
2019-02-14 14:42:54 +00:00
|
|
|
fi
|
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/glacier2router.conf "${pkgdir}"/etc/glacier2router.conf
|
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/icegridnode.conf "${pkgdir}"/etc/icegridnode.conf
|
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/icegridregistry.conf "${pkgdir}"/etc/icegridregistry.conf
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/glacier2router.service \
|
|
|
|
"${pkgdir}"/usr/lib/systemd/system/glacier2router.service
|
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/icegridnode.service \
|
|
|
|
"${pkgdir}"/usr/lib/systemd/system/icegridnode.service
|
|
|
|
install -Dm644 "${srcdir}"/ice-packaging-${pkgver}/ice/rpm/icegridregistry.service \
|
|
|
|
"${pkgdir}"/usr/lib/systemd/system/icegridregistry.service
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
mkdir -p "${pkgdir}"/var/lib/ice/icegrid/{node1,registry}
|
|
|
|
chown -R 101:101 "${pkgdir}"/var/lib/ice
|
2019-02-14 14:42:54 +00:00
|
|
|
|
2020-01-25 05:04:37 +00:00
|
|
|
install -Dm644 "${srcdir}"/zeroc-ice.sysusers "${pkgdir}"/usr/lib/sysusers.d/$pkgname.conf
|
2019-02-14 14:42:54 +00:00
|
|
|
}
|