Date: Friday, March 24, 2023 @ 20:49:53
Author: orhun
Revision: 1427748
archrelease: copy trunk to community-x86_64
Added:
boxxy/repos/community-x86_64/
boxxy/repos/community-x86_64/PKGBUILD
(from rev 1427747, boxxy/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: boxxy/repos/community-x86_64/PKGBUILD (from rev 1427747,
boxxy/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-03-24 20:49:53 UTC (rev 1427748)
@@ -0,0 +1,38 @@
+# Maintainer: Orhun Parmaksız <[email protected]>
+
+pkgname=boxxy
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="Put bad Linux applications in a box with only their files"
+arch=('x86_64')
+url="https://github.com/queer/boxxy"
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cargo')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('2d72960a2b69acae268b486b61e3038385c19f35748273d6d6fd5ba7e426ae87')
+options=('!lto')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ cargo build --release --frozen
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ cargo test --frozen
+}
+
+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"
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim: ts=2 sw=2 et: