summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b8dca72b1e9cc2530213d75d3b72555bbeae0f0 (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
25
# Maintainer: Sebastian Blunt <arch-packaging@c4k3.net>

pkgname="nbted"
pkgver="1.5.0"
pkgrel="1"
pkgdesc="Command line NBT editor"
arch=('i686' 'x86_64')
url="https://github.com/C4K3/nbted"
license=('custom:CC0')
makedepends=('rust' 'cargo')
source=("https://github.com/C4K3/nbted/archive/${pkgver}.tar.gz")
sha256sums=('13d9f7f4ab0db64ad0082fe5975715a693f6c26b336f35248fc1f584c8e4eb21')

build() {
	cd $pkgname-$pkgver
	cargo build --release
}

package() {
	cd $pkgname-$pkgver
	install -Dm0755 target/release/nbted "$pkgdir/usr/bin/nbted"
	install -Dm0644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	install -Dm0644 nbted.1 "$pkgdir/usr/share/man/man1/nbted.1"
}