mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
75 lines
2.8 KiB
Bash
75 lines
2.8 KiB
Bash
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
|
|
# 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
|
|
# - drop zeroc-ice-java due to gradle FTBFS
|
|
|
|
highmem=1
|
|
|
|
pkgname=zeroc-ice
|
|
pkgver=3.7.9
|
|
pkgrel=1
|
|
pkgdesc="An object-oriented middleware that provides RPC functionality"
|
|
arch=(x86_64)
|
|
url="https://zeroc.com"
|
|
license=('GPL' 'custom:ice')
|
|
depends=('mcpp' 'lmdb' 'libedit' 'expat' 'bzip2' 'openssl' 'libxcrypt')
|
|
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
|
|
)
|
|
sha256sums=('960b51bb14a0c89d60c0e65cb1d4c6b09fe94d4e4c033c50254f7cc9c862d3c0'
|
|
'952f33fcdb5c76a2a1c13589284f94f6cf462cab00a7692fa8a6aa7b632711e8'
|
|
'5fdbb1ed753e84e6b49c529e171af848e74a8890fe485dfe1d2bbec3c198dd90')
|
|
|
|
_make_args=(
|
|
"OPTIMIZE=yes"
|
|
"USR_DIR_INSTALL=yes"
|
|
"prefix=/usr"
|
|
"CONFIGS=shared cpp11-shared"
|
|
"SKIP=slice2py"
|
|
)
|
|
|
|
build() {
|
|
cd "${srcdir}"/ice-${pkgver}
|
|
make "${_make_args[@]}" "LANGUAGES=cpp" srcs
|
|
}
|
|
|
|
package() {
|
|
backup=("etc/glacier2router.conf"
|
|
"etc/icegridnode.conf"
|
|
"etc/icegridregistry.conf"
|
|
)
|
|
|
|
cd "${srcdir}"/ice-${pkgver}
|
|
|
|
make install "${_make_args[@]}" DESTDIR="${pkgdir}" "LANGUAGES=cpp"
|
|
install -Dm644 "${srcdir}"/ice-${pkgver}/ICE_LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
|
|
|
rm -f "${pkgdir}"/usr/share/Ice-${pkgver}/LICENSE
|
|
rm -f "${pkgdir}"/usr/share/Ice-${pkgver}/ICE_LICENSE
|
|
|
|
if [ $CARCH == "aarch64" ]; then
|
|
rm -df "${pkgdir}"/usr/lib/
|
|
mv "${pkgdir}"/usr/lib64/ "${pkgdir}"/usr/lib/
|
|
fi
|
|
|
|
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
|
|
|
|
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
|
|
|
|
mkdir -p "${pkgdir}"/var/lib/ice/icegrid/{node1,registry}
|
|
chown -R 101:101 "${pkgdir}"/var/lib/ice
|
|
|
|
install -Dm644 "${srcdir}"/zeroc-ice.sysusers "${pkgdir}"/usr/lib/sysusers.d/$pkgname.conf
|
|
}
|