You are not logged in.
I'm looking for a good example of a rust app PKGBUILD to create a similar one for https://github.com/rory/tileigi
Any good advice?
Offline
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Are the differences from a standard PKGBUILD not just?
build() {
cd "$pkgname-$pkgver"
cargo build --release
}
package() {
cd "$pkgname-$pkgver"
install -Dm755 something $pkgdir/somewhere/something
}Last edited by loqs (2018-06-21 17:46:18)
Offline
# Maintainer: Adolf himself
pkgname=tileigi-git
pkgver=0.8.0
pkgrel=1
_gitname=tileigi
pkgdesc="Generate Vector Tiles from a PostgreSQL database in Rust"
arch=('x86_64')
license=('GPL3')
provides=('hammond')
conflicts=('hammond')
url="https://github.com/rory/tileigi"
makedepends=('rust')
source=("git+https://github.com/rory/tileigi.git")
sha256sums=('SKIP')
build() {
cd $_gitname
cargo build --release
}
package() {
cd $_gitname
echo "$srcdir/$_pkgname/target/release/tileigi"
install -D -m755 "$srcdir/$_gitname/target/release/tileigi" "$pkgdir/usr/bin/tileigi"
}Offline
You're missing a pkgver function...
Offline