summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaleb Maclennan2021-05-20 10:34:30 +0300
committerCaleb Maclennan2021-05-20 10:36:19 +0300
commit2ae5bfb53382abc837f9f9a370f7a6d95c0d247b (patch)
treeb453597c121abbaa0b9d3f77add4204f5026e4c0
downloadaur-2ae5bfb53382abc837f9f9a370f7a6d95c0d247b.tar.gz
Initial upload: ufostroker-git 0.0.0.r4.g20df06b-1
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD40
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..19336080317
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = ufostroker-git
+ pkgdesc = Add path effects to open glyphs in a UFO file
+ pkgver = 0.0.0.r4.g20df06b
+ pkgrel = 1
+ url = https://github.com/simoncozens/ufostroker
+ arch = x86_64
+ license = Apache
+ makedepends = cargo-nightly
+ makedepends = git
+ makedepends = rust-nightly
+ source = ufostroker-git::git+https://github.com/simoncozens/ufostroker.git
+ sha256sums = SKIP
+
+pkgname = ufostroker-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2ecb910807c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb@aleque.com>
+
+pkgname=ufostroker-git
+pkgver=0.0.0.r4.g20df06b
+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")
+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'
+}
+
+prepare() {
+ cd "$pkgname"
+ cargo +nightly fetch --locked
+}
+
+build() {
+ cd "$pkgname"
+ cargo +nightly build --release --locked --all-features
+}
+
+check() {
+ cd "$pkgname"
+ cargo +nightly test --release --locked
+}
+
+package() {
+ cd "$pkgname"
+ install -Dm755 -t "$pkgdir/usr/bin" "target/release/${pkgname%-git}"
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}