archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libetebase / trunk / PKGBUILD
blobf603389ae4ef8916854335047eb0c1cbb834ccdf
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=libetebase
4 pkgver=0.5.3
5 pkgrel=1
6 pkgdesc='Etebase C library'
7 arch=(x86_64)
8 url='https://github.com/etesync/libetebase'
9 license=(BSD)
10 depends=(openssl gcc-libs libsodium)
11 makedepends=(rust)
12 source=(https://github.com/etesync/libetebase/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
13 sha256sums=('78c79f72df40ae4ed85beca593d870159f923e8b9e0111c16e34b6142c634995')
15 prepare() {
16   cd $pkgname-$pkgver
17   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
20 build() {
21   cd $pkgname-$pkgver
22   env CARGO_INCREMENTAL=0 SODIUM_USE_PKG_CONFIG= cargo build --release --locked --offline
23   make pkgconfig
26 package() {
27   cd $pkgname-$pkgver
28   make DESTDIR="$pkgdir" install
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname