upgpkg: 1.1.10-1

This commit is contained in:
kpcyrd 2023-11-30 14:53:51 +01:00
parent bbba69d4ca
commit cae8319fd4
No known key found for this signature in database
GPG Key ID: 45A650E2638C536D
2 changed files with 40 additions and 5 deletions

19
.SRCINFO Normal file
View File

@ -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

View File

@ -1,17 +1,24 @@
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
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"
}