Created
February 3, 2017 05:52
-
-
Save kaseiwang/4c2089126acfff69a9021a9092f5a380 to your computer and use it in GitHub Desktop.
rslsync/btsync 2.4.4 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributor: Dalton Miller | |
# Contributor: Kilian Lackhove [email protected] | |
# Contributor: Justin Patera [email protected] | |
# Maintainer: ava1ar <mail(at)ava1ar(dot)me> | |
pkgname=btsync | |
pkgver=2.4.4 | |
pkgrel=1 | |
pkgdesc="BitTorrent Sync (Resilio) - automatically sync files via secure, distributed technology" | |
license=("custom:btsync") | |
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') | |
url="https://www.resilio.com" | |
install=btsync.install | |
backup=('etc/btsync.conf') | |
conflicts=('btsync-1.4') | |
source=(btsync.service btsync_user.service btsync.conf) | |
source_arm=("resilio-sync_arm-${pkgver}-${pkgrel}.tar.gz::https://download-cdn.resilio.com/${pkgver}/linux-arm/resilio-sync_arm.tar.gz") | |
source_armv6h=("resilio-sync_arm-${pkgver}-${pkgrel}.tar.gz::https://download-cdn.resilio.com/${pkgver}/linux-arm/resilio-sync_arm.tar.gz") | |
source_armv7h=("resilio-sync_armhf-${pkgver}-${pkgrel}.tar.gz::https://download-cdn.resilio.com/${pkgver}/linux-armhf/resilio-sync_armhf.tar.gz") | |
source_i686=("resilio-sync_i386-${pkgver}-${pkgrel}.tar.gz::https://download-cdn.resilio.com/${pkgver}/linux-i386/resilio-sync_i386.tar.gz") | |
source_x86_64=("resilio-sync_x64-${pkgver}-${pkgrel}.tar.gz::https://download-cdn.resilio.com/${pkgver}/linux-x64/resilio-sync_x64.tar.gz") | |
sha1sums=('05038b03a673dd0207b2758a2e01db5d28c409d1' | |
'd30deb7e41ba1d163b4a5e442b8d8118758d312a' | |
'bf7d6bd7ffe2d23cce51a51e92fac3b82a7c87bb') | |
sha1sums_i686=('d390f4b9484e3e77ce4e46baf8f51bdb5fa80213') | |
sha1sums_x86_64=('17c58e914be49f9a78c4a24a4cd0637307d8456b') | |
sha1sums_arm=('adf52e7273dc0adf162445104e279f51cfc76bf8') | |
sha1sums_armv6h=('adf52e7273dc0adf162445104e279f51cfc76bf8') | |
sha1sums_armv7h=('b212ad482eac1987cb1ff1e4596def01dc16889e') | |
package() { | |
# install main binary | |
install -Dm755 "${srcdir}"/rslsync "${pkgdir}"/usr/bin/btsync | |
# generate and install system-wide config | |
mkdir -p "${pkgdir}"/etc | |
./rslsync --dump-sample-config \ | |
| sed 's:/home/user/\.sync:/var/lib/btsync:' \ | |
| sed 's:\/\/ "pid_file": "pid_file":' \ | |
| sed 's:\/\/ "storage_path": "storage_path":' \ | |
> "${pkgdir}"/etc/btsync.conf | |
# install systemd config files | |
install -Dm644 "${srcdir}"/btsync.service "${pkgdir}"/usr/lib/systemd/system/btsync.service | |
install -Dm644 "${srcdir}"/btsync.conf "${pkgdir}"/usr/lib/tmpfiles.d/btsync.conf | |
install -Dm644 "${srcdir}"/btsync_user.service "${pkgdir}"/usr/lib/systemd/user/btsync.service | |
# install license | |
install -Dm644 "${srcdir}"/LICENSE.TXT "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment