# Maintainer: Ben Brooks # PRs/Issues: https://github.com/bbrks/aur-sync_gateway-community-bin pkgname=sync_gateway-community-bin pkgver=3.1.4 pkgrel=1 pkgdesc="Manages access and synchronization between Couchbase Lite and Couchbase Server - Community Edition (CE)" url="https://github.com/couchbase/sync_gateway" arch=('x86_64') license=('custom:Couchbase Community Edition License') provides=('sync_gateway') conflicts=('sync_gateway-git') install="sync_gateway.install" source=( "https://packages.couchbase.com/releases/couchbase-sync-gateway/${pkgver}/couchbase-sync-gateway-community_${pkgver}_x86_64.deb" 'sync_gateway.service' ) sha256sums=('46d84cc4e7feefbb549c5f405fb7e588e4bfadee60de3b3acd82e0d2bfc7cfef' '4bc3c5843b2b6e31d954a53d43c9ecdce77faf3942b5da4ffdaba846f02dd381') prepare () { msg2 "Extracting the data.tar.gz file" tar -xf "${srcdir}/data.tar.xz" } package() { install -Dm755 "${srcdir}/opt/couchbase-sync-gateway/bin/sync_gateway" "${pkgdir}/usr/bin/sync_gateway" install -Dm644 "${srcdir}/opt/couchbase-sync-gateway/examples/startup_config/basic.json" "${pkgdir}/etc/sync_gateway.json" install -Dm644 "${srcdir}/sync_gateway.service" "${pkgdir}/usr/lib/systemd/system/sync_gateway.service" install -Dm644 "${srcdir}/opt/couchbase-sync-gateway/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }