summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCaleb Maclennan2021-08-05 23:52:20 +0300
committerCaleb Maclennan2021-08-05 23:52:20 +0300
commitc0b331bbad334b59492b39443349179375ffa760 (patch)
tree1fca693e8ae016203103448275e12138d8cb3549 /PKGBUILD
parent2ae5bfb53382abc837f9f9a370f7a6d95c0d247b (diff)
downloadaur-ufostroker-git.tar.gz
upgpkg: ufostroker-git 0.0.0.r8.g2fd58b2-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 21 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2ecb910807c..7bf0fb1a5f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,40 +1,45 @@
# Maintainer: Caleb Maclennan <caleb@aleque.com>
pkgname=ufostroker-git
-pkgver=0.0.0.r4.g20df06b
+pkgver=0.0.0.r8.g2fd58b2
pkgrel=1
pkgdesc='Add path effects to open glyphs in a UFO file'
arch=(x86_64)
url="https://github.com/simoncozens/${pkgname%-git}"
license=(Apache)
-makedepends=(cargo-nightly git rust-nightly)
-source=("$pkgname::git+$url.git")
+makedepends=(cargo-nightly
+ fontconfig
+ freetype2
+ git)
+source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
- cd "$pkgname"
- git tag | grep -Fq '0.0.0' || git tag '0.0.0' d4a63044
- git describe --long --tags --abbrev=7 --match='[0-9]*' |
- sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "${pkgname%-git}"
+ git tag | grep -Fq '0.0.0' || git tag '0.0.0' d4a63044
+ git describe --long --tags --abbrev=7 --match='[0-9]*' |
+ sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
- cd "$pkgname"
- cargo +nightly fetch --locked
+ cd "${pkgname%-git}"
+ cargo fetch --locked --target x86_64-unknown-linux-gnu
}
build() {
- cd "$pkgname"
- cargo +nightly build --release --locked --all-features
+ cd "${pkgname%-git}"
+ export RUSTUP_TOOLCHAIN=nightly
+ export CARGO_TARGET_DIR=target
+ cargo build --frozen --release --all-features
}
check() {
- cd "$pkgname"
- cargo +nightly test --release --locked
+ cd "${pkgname%-git}"
+ export RUSTUP_TOOLCHAIN=nightly
+ cargo test --frozen --all-features
}
package() {
- cd "$pkgname"
- install -Dm755 -t "$pkgdir/usr/bin" "target/release/${pkgname%-git}"
- install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+ cd "${pkgname%-git}"
+ install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}"
}