diff options
author | Mark Wagie | 2021-08-11 13:52:15 -0600 |
---|---|---|
committer | Mark Wagie | 2021-08-11 13:52:15 -0600 |
commit | 2959f5103b881d85d75317eb687a7e2130f3788f (patch) | |
tree | 3d844fb017053b05650a7e47e7f9897f013383ec | |
parent | 975400322298b2eb0b0716d3c273f4b4726312f1 (diff) | |
download | aur-2959f5103b881d85d75317eb687a7e2130f3788f.tar.gz |
PKGBUILD improvements
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 13 |
2 files changed, 11 insertions, 4 deletions
@@ -5,8 +5,8 @@ pkgbase = libs76-hidpi-widget-git url = https://github.com/pop-os/hidpi-widget arch = x86_64 license = GPL3 + makedepends = cargo makedepends = git - makedepends = rust depends = gtk3 depends = libhandy provides = libs76-hidpi-widget @@ -7,7 +7,7 @@ arch=('x86_64') url="https://github.com/pop-os/hidpi-widget" license=('GPL3') depends=('gtk3' 'libhandy') -makedepends=('git' 'rust') +makedepends=('cargo' 'git') provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=('git+https://github.com/pop-os/hidpi-widget.git') @@ -18,10 +18,17 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "$srcdir/hidpi-widget" + cargo fetch --target "$CARCH-unknown-linux-gnu" +} + build() { cd "$srcdir/hidpi-widget" - cargo build --release - cargo build --release --manifest-path ffi/Cargo.toml + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release + cargo build --frozen --release --manifest-path ffi/Cargo.toml cargo run -p tools --bin pkgconfig -- \ s76_hidpi_widget /usr/lib /usr/include } |