# Maintainer: Dave Nicholson pkgname=wallheaven pkgver=0.1.4 pkgrel=1 pkgdesc='wallheaven is a CLI tool for fetching random wallpapers from wallhaven.cc.' url='https://github.com/davenicholson-xyz/wallheaven' license=('MIT') makedepends=() depends=() arch=('x86_64') source=("https://github.com/davenicholson-xyz/$pkgname/releases/download/v$pkgver/wallheaven-x86_64-unknown-linux-gnu.tar.xz") sha256sums=("3ca79f8de657643232cc7d3b6ab59d14ec1b146e4060d7c729442a049d6f800d") build() { mkdir -p "$srcdir/../build" tar -xvf "$srcdir/../$pkgname-x86_64-unknown-linux-gnu.tar.xz" --strip-components=1 -C "$srcdir/../build" } package() { install -Dm0755 -t "$pkgdir/usr/bin/" "$srcdir/../build/wallheaven" install -Dm0755 -t "$pkgdir/usr/bin/" "$srcdir/../build/wallheavend" }