amp: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 01:17:16 +02:00 committed by Enno Boland
parent 0fd4935415
commit f3cbebe56f
1 changed files with 4 additions and 9 deletions

View File

@ -1,8 +1,8 @@
# Template file for 'amp'
pkgname=amp
version=0.5.1
revision=1
hostmakedepends="cargo cmake git perl pkg-config python3"
revision=2
hostmakedepends="cmake git perl pkg-config python3"
makedepends="libcurl-devel libgit2-devel libxcb-devel"
short_desc="A complete text editor for your terminal"
maintainer="Wilson Birney <wpb@360scada.com>"
@ -11,13 +11,8 @@ homepage="https://amp.rs"
changelog="https://raw.githubusercontent.com/jmacdonald/amp/master/CHANGELOG.md"
distfiles="https://github.com/jmacdonald/amp/archive/${version}.tar.gz"
checksum=c4090ca66be597c833c29578a69457087d9f17236d1c8bf430d14a9e7d3cb50b
nocross=yes
do_build() {
pre_build() {
cargo update --package openssl-sys --precise 0.9.28
export LIBGIT2_SYS_USE_PKG_CONFIG=1
cargo build --release ${makejobs}
}
do_install() {
vbin target/release/${pkgname}
}