archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libetebase / trunk / PKGBUILD
blobabeeeabc70b07e12a2deca4ec3265296c29f405d
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 pkgname=libetebase
4 pkgver=0.5.4
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=('ba0d6740d39d7d09cdf2dda4e73716a3c05502770a40b8087582570bd1c31752')
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