summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD29
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..23fb28e79a1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = workstyle-git
+ pkgdesc = Dynamically renames sway/i3 workspaces to indicate which programs are running in each one
+ pkgver = 0.2.1.r29.g43b0b5b
+ pkgrel = 1
+ url = https://github.com/pierrechevalier83/workstyle
+ arch = x86_64
+ makedepends = git
+ makedepends = rust
+ provides = workstyle
+ conflicts = workstyle
+ source = workstyle::git+https://github.com/pierrechevalier83/workstyle
+ md5sums = SKIP
+
+pkgname = workstyle-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d9f0b1180e0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Jason Nader <jason.nader@protonmail.com>
+
+pkgname=workstyle-git
+_pkgname=workstyle
+pkgver=0.2.1.r29.g43b0b5b
+pkgrel=1
+pkgdesc='Dynamically renames sway/i3 workspaces to indicate which programs are running in each one'
+arch=('x86_64')
+url='https://github.com/pierrechevalier83/workstyle'
+makedepends=('git' 'rust')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+$url")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ echo $(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2).r$(git rev-list --count HEAD).g$(git describe --always)
+}
+
+build() {
+ cd "$_pkgname"
+ cargo build --release
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm755 "target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+}