aports/testing/rdedup/APKBUILD
Kevin Daudt 3b688d6457 testing/various: enable stackprotector
On x86, the stack protector was disabled by addinsg
`-fno-stack-protector` to CFLAGS. This was due to rust not passing
`-lssp_nonshared` to the linker, causing build errors while linking.

Rust has been patched to fix this issue, so now we can enable stack
protection again.
2020-02-14 21:37:33 +00:00

40 lines
891 B
Plaintext

# Contributor: tcely <rdedup+aports@tcely.33mail.com>
# Maintainer:
pkgname="rdedup"
pkgver="3.1.1"
pkgrel=3
pkgdesc="Data deduplication with compression and public key encryption"
url="https://github.com/dpc/rdedup"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # limited by cargo
license="MPL-2.0"
makedepends="cargo clang-dev libsodium-dev openssl-dev xz-dev"
source="https://github.com/dpc/${pkgname}/archive/${pkgname}-v${pkgver}.tar.gz"
builddir="$srcdir/${pkgname}-${pkgname}-v${pkgver}"
_cargo_env() {
cd "$builddir"
RELEASE=true
export RELEASE
}
build() {
_cargo_env
make check build
}
check() {
_cargo_env
make bench test
}
package() {
_cargo_env
cargo install --root "$pkgdir" --path "$builddir"
}
sha512sums="f94fc99ce84f5618ec5e24f48c593e7644eecadc4be2d997f9847576d97f3c5adf97a97fca1376ea0da4e24b9acf7cee354e032e6354a07a9922c63f798426ae rdedup-v3.1.1.tar.gz"