# Maintainer: Jordan MacDonald pkgname=amp pkgver=0.6.2 pkgrel=1 pkgdesc='A modal text editor for the terminal.' arch=('x86_64') url='https://github.com/jmacdonald/amp' license=('GPL3') depends=('libxcb') makedepends=('rust' 'git' 'cmake' 'libxcb' 'python') source=("https://github.com/jmacdonald/$pkgname/archive/$pkgver.tar.gz") sha512sums=( 'feb7a82355d5020ed8b4dfb5e40d43ccbdd4aaec02050a8f83c06160420239ef1ed8390eddd3d32a4c94c49444607f03584f0f60f51fa68b0906446acfdad043' ) build() { cd "$pkgname-$pkgver" cargo build --release } package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/amp" "$pkgdir/usr/bin/amp" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" }