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
|
2023-02-24 23:23:47 +01:00
|
|
|
pkgver=0.13.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"
|
2022-11-23 17:58:12 +01:00
|
|
|
source=("https://github.com/mozilla-services/${_pkgname}/archive/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
|
2022-09-23 22:36:18 +02:00
|
|
|
"${pkgname}.service")
|
2023-02-24 23:23:47 +01:00
|
|
|
sha256sums=('adfa2161b523e08cb45a37b4fada2ef80585828576e6c6b49e1de550d1e7e7e3'
|
2022-11-03 17:14:18 +01:00
|
|
|
'609e057cd835ea54b06b32b98e210cd946255f652e7754c9160fd7c94379a83d')
|
2022-09-23 22:36:18 +02:00
|
|
|
backup=("etc/${pkgname}.toml")
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
|
|
|
cargo build --release --features grpcio/openssl
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
|
|
|
|
|
|
|
# Installing manually
|
2022-11-15 17:25:15 +01:00
|
|
|
install -Dm 755 target/release/syncserver "${pkgdir}"/usr/bin/"${pkgname}"
|
2022-09-23 22:36:18 +02:00
|
|
|
install -Dm 644 config/local.example.toml "${pkgdir}"/etc/"${pkgname}".toml
|
|
|
|
install -Dm 644 "${srcdir}/${pkgname}".service "${pkgdir}"/usr/lib/systemd/system/"${pkgname}".service
|
|
|
|
}
|