summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08ee7770d822805ed0c857547df7e9b5c9f72933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: yancat <yancat_aur@icloud.com>
pkgname=zstbund
pkgver=1.0.3
pkgrel=4
pkgdesc='Bundle Arch Linux packages with all dependencies and GPG keys into a zip file for offline installation.'
arch=('x86_64')
url="https://github.com/yan-cat/zstbund"
license=('GPL3')
depends=('pacman' 'zip')
makedepends=('rust' 'cargo')
source=("zstbund-${pkgver}.tar.gz")
sha256sums=('70a598d4a3c5344ca71ee9e2aec68a2bff00afb00d9848e8907147cf77583f4a')
options=('!debug')

build() {
  cd "$srcdir/zstbund"
  cargo build --release --locked
}

package() {
  cd "$srcdir/zstbund"
  install -Dm755 target/release/$pkgname -t "$pkgdir/usr/bin"
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}