blob: dd06b23296ede689a59dad2c03bb5f95022eb31b (
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
26
|
# Maintainer: jojolepro <jojolepro[at]jojolepro[at]com>
pkgname=inv
_pkgcomplete=inventory-managoat
pkgver=0.2.0
pkgrel=1
url="https://github.com/jojolepro/inventory-managoat"
pkgdesc="Inventory Managoat - A Simple Inventory Manager"
depends=('gcc-libs')
makedepends=('rust' 'cargo')
license=('GPL')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/jojolepro/inventory-managoat/archive/${pkgver}.tar.gz")
sha256sums=('c7ee16467068766d625574d21b9ae4ebdbfbeb6dc5dbc83adf473b20b471b9f9')
build() {
cd "$srcdir/$_pkgcomplete-$pkgver"
cargo build --release --locked
}
package() {
cd "$srcdir/$_pkgcomplete-$pkgver"
install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm 644 README.md "$pkgdir/usr/share/doc/$pkgname/README"
install -Dm 644 inv.1 "$pkgdir/usr/share/man/man1/$pkgname.1"
}
|