-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
39 lines (35 loc) · 1.15 KB
/
template
File metadata and controls
39 lines (35 loc) · 1.15 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
# Template file for 'gitu'
pkgname=gitu
version=0.41.0
revision=1
build_style=cargo
build_helper="rust qemu"
hostmakedepends="pkg-config libgit2-1.9-devel libssh2-devel zlib-devel git"
makedepends="libgit2-1.9-devel openssl-devel libssh2-devel zlib-devel"
short_desc="Git client inspired by Magit"
maintainer="rayfadh <rayfadh@duck.com>"
license="MIT"
homepage="https://github.com/altsem/gitu"
changelog="https://raw.githubusercontent.com/altsem/gitu/refs/heads/master/CHANGELOG.md"
distfiles="https://github.com/altsem/gitu/archive/refs/tags/v${version}.tar.gz"
checksum=eba1cd649339ee1c6f02c39bcd9fc3092df8e374bfbcd194750a966b09cb5e55
_setup_env() {
# workaround the cc-rs mixing CFLAGS for host and target.
# https://github.com/rust-lang/cc-rs/issues/1469
export CFLAGS_${RUST_BUILD//-/_}="${CFLAGS_host}" \
CXXFLAGS_${RUST_BUILD//-/_}="${CXXFLAGS_host}" \
LDFLAGS_${RUST_BUILD//-/_}="${LDFLAGS_host}" \
CFLAGS_${RUST_TARGET//-/_}="${CFLAGS}" \
CXXFLAGS_${RUST_TARGET//-/_}="${CXXFLAGS}" \
LDFLAGS_${RUST_TARGET//-/_}="${LDFLAGS}" \
CFLAGS="" CXXFLAGS="" LDFLAGS=""
}
pre_build() {
_setup_env
}
pre_install() {
_setup_env
}
post_install() {
vlicense LICENSE
}