# Contributor: Dalton Miller # Contributor: Kilian Lackhove kilian@lackhove.de # Contributor: Justin Patera serialhex@gmail.com # Contributor: ava1ar # Maintainer: widowild pkgname=rslsync pkgver=2.5.8 pkgrel=3 pkgdesc="Resilio Sync (ex:BitTorrent Sync) - automatically sync files via secure, distributed technology" license=("custom:resilio") arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64') url="https://www.getsync.com" install=rslsync.install backup=('etc/rslsync.conf') conflicts=() source=(rslsync.service rslsync_user.service rslsync.conf) source_arm=("rslsync_arm-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-arm/resilio-sync_arm.tar.gz") source_armv6h=("rslsync_arm-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-arm/resilio-sync_arm.tar.gz") source_armv7h=("rslsync_armhf-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-armhf/resilio-sync_armhf.tar.gz") source_aarch64=("rslsync_armhf-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-armhf/resilio-sync_armhf.tar.gz") source_i686=("rslsync_i386-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-i386/resilio-sync_i386.tar.gz") source_x86_64=("rslsync_x64-${pkgver}.tar.gz::https://download-cdn.resilio.com/stable/linux-x64/resilio-sync_x64.tar.gz") sha256sums=('4483cbe3fff81281666d8fbe8c9b8d7d27c38ba7a3d3752a865f1ab8c1f212db' 'ba4b0ee3303027122e67345d4bf852f911a56f213f98c9eaa198c69d903fd8a1' '56a0523cdde9b6c1c469bbb29805d260972e8e1fc831e82863fd35d9e2f6c734') sha256sums_i686=('9dde6fd55a06d6c681daf65d1e3e176e75396894ed172fe9152094c60ec2174f') sha256sums_x86_64=('bf6f0077adbb5380e86a3e613453a85f7c2380883f0656e5fdc3cfed3e2b0098') sha256sums_arm=('1dbd1f8dbbab85c0fc0505b2effb948d3b249abeee741f47901e73b37a8c9109') sha256sums_armv6h=('1dbd1f8dbbab85c0fc0505b2effb948d3b249abeee741f47901e73b37a8c9109') sha256sums_armv7h=('a6d2f9b336e3b1fc3e4bde34bfb38877494154bcaca5a9f011dd5f12fb36f0fb') sha256sums_aarch64=('a6d2f9b336e3b1fc3e4bde34bfb38877494154bcaca5a9f011dd5f12fb36f0fb') package() { # install main binary install -Dm755 "${srcdir}"/rslsync "${pkgdir}"/usr/bin/rslsync # generate and install system-wide config mkdir -p "${pkgdir}"/etc ./rslsync --dump-sample-config \ | sed 's:/home/user/\.sync:/var/lib/rslsync:' \ | sed 's:\/\/ "pid_file": "pid_file":' \ | sed 's:\/\/ "storage_path": "storage_path":' \ | sed 's/\/var\/run\/resilio\/resilio.pid/\/var\/run\/resilio\/resilio.pid/g' \ > "${pkgdir}"/etc/rslsync.conf # install systemd config files install -Dm644 "${srcdir}"/rslsync.service "${pkgdir}"/usr/lib/systemd/system/rslsync.service install -Dm644 "${srcdir}"/rslsync.conf "${pkgdir}"/usr/lib/tmpfiles.d/rslsync.conf install -Dm644 "${srcdir}"/rslsync_user.service "${pkgdir}"/usr/lib/systemd/user/rslsync.service # install license install -Dm644 "${srcdir}"/LICENSE.TXT "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt }