From 52c0df7469544614c04cd2e3475411c742a145f8 Mon Sep 17 00:00:00 2001 From: miampf Date: Mon, 22 Jan 2024 21:37:31 +0000 Subject: [PATCH] nit: remove pkgbuild and srcinfo (#37) --- .SRCINFO | 13 ------------- PKGBUILD | 36 ------------------------------------ 2 files changed, 49 deletions(-) delete mode 100644 .SRCINFO delete mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO deleted file mode 100644 index abeafcf..0000000 --- a/.SRCINFO +++ /dev/null @@ -1,13 +0,0 @@ -pkgbase = tag - pkgdesc = Search for local text files with a simple tagging system. - pkgver = 0.2.0 - pkgrel = 1 - url = https://github.com/miampf/tag - arch = x86_64 - license = MIT - makedepends = cargo - provides = tag - source = tag-0.2.0.tar.gz::https://static.crates.io/crates/tag/tag-0.2.0.crate - sha1sums = SKIP - -pkgname = tag diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index 0251797..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,36 +0,0 @@ -pkgname=tag -pkgver=0.2.0 -pkgrel=1 -source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate") -pkgdesc="Search for local text files with a simple tagging system." -arch=('x86_64') -url='https://github.com/miampf/tag' -license=('MIT') -provides=('tag') -makedepends=(cargo) -sha1sums=('SKIP') - -prepare() { - cd $pkgname-$pkgver - export RUSTUP_TOOLCHAIN=stable - cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" -} - -build() { - cd $pkgname-$pkgver - export RUSTUP_TOOLCHAIN=stable - export CARGO_TARGET_DIR=target - cargo build --frozen --release --all-features --target "$(rustc -vV | sed -n 's/host: //p')" -} - - -check() { - cd $pkgname-$pkgver - export RUSTUP_TOOLCHAIN=stable - cargo test --frozen --all-features --target "$(rustc -vV | sed -n 's/host: //p')" -} - -package() { - cd $pkgname-$pkgver - install -Dm0755 -t "$pkgdir/usr/bin/" "target/$(rustc -vV | sed -n 's/host: //p')/release/$pkgname" -}