From cae8319fd4450bfa677557b32c8115d7c2cf6daa Mon Sep 17 00:00:00 2001 From: kpcyrd Date: Thu, 30 Nov 2023 14:53:51 +0100 Subject: [PATCH] upgpkg: 1.1.10-1 --- .SRCINFO | 19 +++++++++++++++++++ PKGBUILD | 26 +++++++++++++++++++++----- 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 .SRCINFO diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..153fe11 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = arti + pkgdesc = An implementation of Tor in Rust + pkgver = 1.1.10 + pkgrel = 1 + url = https://gitlab.torproject.org/tpo/core/arti + arch = x86_64 + license = MIT + license = Apache + makedepends = cargo + depends = liblzma.so + depends = libsqlite3.so + depends = libssl.so + options = !lto + backup = etc/arti.d/arti.toml + source = arti-1.1.10.tar.gz::https://gitlab.torproject.org/tpo/core/arti/-/archive/arti-v1.1.10/arti-arti-v1.1.10.tar.gz + sha256sums = bb7f18385022b616fb0fb04c61b890441524eaa884def1eef3c581b711814842 + b2sums = ba11c13d0d214b3f3d4e8c3e4767a947383377f43fe2ce5238b047f89d1d460003c6e9df19145952f28b6dc20e7c84ad849dd8dc08af8f196f75292e4c6299b2 + +pkgname = arti diff --git a/PKGBUILD b/PKGBUILD index e4c88d0..d1b653c 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,17 +1,24 @@ # Maintainer: Orhun Parmaksız +# Maintainer: kpcyrd pkgname=arti -pkgver=1.1.8 +pkgver=1.1.10 pkgrel=1 pkgdesc="An implementation of Tor in Rust" arch=('x86_64') url="https://gitlab.torproject.org/tpo/core/arti" license=('MIT' 'Apache') -depends=('sqlite' 'openssl' 'xz') +depends=( + 'liblzma.so' + 'libsqlite3.so' + 'libssl.so' +) makedepends=('cargo') -source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz") -sha256sums=('8ad12358086a65d2c41fb3be31b09e0324ef41e2669e6c596753589c4155ee2d') +backup=('etc/arti.d/arti.toml') options=('!lto') +source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz") +sha256sums=('bb7f18385022b616fb0fb04c61b890441524eaa884def1eef3c581b711814842') +b2sums=('ba11c13d0d214b3f3d4e8c3e4767a947383377f43fe2ce5238b047f89d1d460003c6e9df19145952f28b6dc20e7c84ad849dd8dc08af8f196f75292e4c6299b2') prepare() { mv "$pkgname-$pkgname-v$pkgver" "$pkgname-$pkgver" @@ -27,12 +34,21 @@ build() { check() { cd "$pkgname-$pkgver" cargo test --frozen + "target/release/$pkgname" --help } package() { cd "$pkgname-$pkgver" install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" - install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname" + + # config + install -Dm 640 crates/arti/src/arti-example-config.toml "$pkgdir/etc/arti.d/arti.toml" + + # docs + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" \ + README.md \ + crates/arti/src/arti-example-config.toml + install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname" }