2022-09-23 22:36:18 +02:00
|
|
|
# Maintainer: Manuel Hüsers <aur@huesers.de>
|
|
|
|
# Contributor: jewelux <jewelux.aur@prejo.de>
|
|
|
|
|
|
|
|
# Based off the firefox-syncstorage-git PKGBUILD from jewelux
|
|
|
|
|
|
|
|
pkgname=firefox-syncstorage
|
|
|
|
_pkgname=syncstorage-rs
|
2022-10-12 20:44:16 +02:00
|
|
|
pkgver=0.12.4
|
2022-09-23 22:36:18 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='Sync storage server with built-in token server for running a self-hosted firefox sync server'
|
|
|
|
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
|
|
|
|
url="https://github.com/mozilla-services/${_pkgname}"
|
|
|
|
license=('MPL2')
|
|
|
|
depends=('openssl' 'python-fxa' 'python-tokenlib')
|
|
|
|
makedepends=('rust' 'cmake' 'pkgconf' 'mariadb-libs')
|
|
|
|
optdepends=('mysql: for use with a local database server')
|
|
|
|
install="${pkgname}.install"
|
|
|
|
source=("https://github.com/mozilla-services/${_pkgname}/archive/${pkgver}.tar.gz"
|
|
|
|
"${pkgname}.service")
|
2022-10-12 20:44:16 +02:00
|
|
|
sha256sums=('05817b02e74fb4f45a10b1b2583bf353616624a1c776cf72c185f9e89189590b'
|
2022-09-23 22:36:18 +02:00
|
|
|
'609e057cd835ea54b06b32b98e210cd946255f652e7754c9160fd7c94379a83d')
|
|
|
|
backup=("etc/${pkgname}.toml")
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
|
|
|
cargo build --release --features grpcio/openssl
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
# Installing manually
|
|
|
|
install -Dm 755 target/release/syncstorage "${pkgdir}"/usr/bin/"${pkgname}"
|
|
|
|
install -Dm 644 config/local.example.toml "${pkgdir}"/etc/"${pkgname}".toml
|
|
|
|
install -Dm 644 "${srcdir}/${pkgname}".service "${pkgdir}"/usr/lib/systemd/system/"${pkgname}".service
|
|
|
|
}
|