diff options
author | gesh | 2024-03-26 16:17:27 +0200 |
---|---|---|
committer | gesh | 2024-03-26 16:17:27 +0200 |
commit | 1c5d689c831ba81b7dab62b04a67e6754f8cf028 (patch) | |
tree | 76f853a6c3cc04a72e7fbcb3cbc59c707fec2632 | |
parent | b153b5a236f540a829ec915b687721aa1a6a93c4 (diff) | |
download | aur-1c5d689c831ba81b7dab62b04a67e6754f8cf028.tar.gz |
Fix build, minor improvements
LTO is broken ATM with rust[1], so RFC4 killed the build.
Also package licenses, improve platform detection, and add `git`
makedepend
[1] - gitlab.archlinux.org:packages/pacman!20
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 12 insertions, 7 deletions
@@ -1,11 +1,13 @@ pkgbase = pizauth-git pkgdesc = OAuth2 token requester daemon - pkgver = 1.0.3.r19.gf32cb2f + pkgver = 1.0.4.r0.gcaf045c pkgrel = 1 url = https://github.com/ltratt/pizauth arch = i686 arch = x86_64 - license = custom + license = MIT + license = Apache-2.0 + makedepends = git makedepends = cargo provides = pizauth source = pizauth-git::git+https://github.com/ltratt/pizauth.git @@ -2,14 +2,14 @@ pkgname=pizauth-git _pkgname="${pkgname%-git}" -pkgver=1.0.3.r19.gf32cb2f +pkgver=1.0.4.r0.gcaf045c pkgrel=1 pkgdesc="OAuth2 token requester daemon" arch=('i686' 'x86_64') url="https://github.com/ltratt/${_pkgname}" -license=('custom') +license=('MIT' 'Apache-2.0') provides=("$_pkgname") -makedepends=(cargo) +makedepends=(git cargo) source=("${pkgname}::git+${url}.git") sha256sums=('SKIP') @@ -22,14 +22,15 @@ pkgver() { prepare() { cd "$pkgname" export RUSTUP_TOOLCHAIN=stable - cargo update - cargo fetch --locked --target "$CARCH-unknown-linux-gnu" + #cargo update + cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$pkgname" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target + export CFLAGS+=('-ffat-lto-objects') cargo build --frozen --release --all-features } @@ -46,4 +47,6 @@ package() { EXAMPLESDIR='/usr/share/' \ DESTDIR="$pkgdir/" \ install + + install -Dm 644 LICENSE* -t "${pkgdir}/usr/share/licenses/${pkgname}" } |