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
|
2024-11-19 20:34:42 +01:00
|
|
|
pkgver=0.17.14
|
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}"
|
2024-07-21 07:32:40 +02:00
|
|
|
license=('MPL-2.0')
|
2022-09-23 22:36:18 +02:00
|
|
|
depends=('openssl' 'python-fxa' 'python-tokenlib')
|
|
|
|
makedepends=('rust' 'cmake' 'pkgconf' 'mariadb-libs')
|
|
|
|
optdepends=('mysql: for use with a local database server')
|
2023-10-04 23:45:15 +02:00
|
|
|
options=('!lto')
|
2022-09-23 22:36:18 +02:00
|
|
|
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")
|
2024-11-19 20:34:42 +01:00
|
|
|
sha512sums=('ba661ef6c5d8af8ea8752b972fce06f016fbc700de6be30086871c15b07ccf7b55da8f4a46b3090fe7abc16301955562d3b136247cfac9821e900d456621e8bd'
|
2023-10-04 23:45:15 +02:00
|
|
|
'4c5fbb99160613ba3fb0fedce97f04f63b92699fe79c6edd899d4ec5f297c5a98c0c211df3eb9a6579c12c57f4c63513747ed8944a60fc76e32f1e0c0f5e3a95')
|
2022-09-23 22:36:18 +02:00
|
|
|
backup=("etc/${pkgname}.toml")
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_pkgname}-${pkgver}"
|
2023-03-07 21:57:07 +01:00
|
|
|
cargo build --release
|
2022-09-23 22:36:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|