summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanila2021-02-22 06:12:59 +0300
committerDanila2021-02-22 06:12:59 +0300
commitf5fcd516b75a8d8ebddca83487e1a5fb5bbc73ee (patch)
tree062378833cbf0ea282a397f92c41bccdc7b24a69
downloadaur-f5fcd516b75a8d8ebddca83487e1a5fb5bbc73ee.tar.gz
initial release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD31
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f272cbab1fe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = persway-git
+ pkgdesc = Small Sway IPC Daemon
+ pkgver = 1.4.1.r55.4a661a4
+ pkgrel = 1
+ url = https://github.com/johnae/persway
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ provides = persway
+ conflicts = persway
+ source = git+https://github.com/johnae/persway.git
+ sha512sums = SKIP
+
+pkgname = persway-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..6eafc7e3c0b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: okhsunrog <me@gornushko.com>
+pkgname=persway-git
+_pkgname=persway
+_pkgver=1.4.1
+pkgver=1.4.1.r55.4a661a4
+pkgrel=1
+pkgdesc="Small Sway IPC Daemon"
+url="https://github.com/johnae/persway"
+makedepends=('cargo')
+arch=('i686' 'x86_64')
+license=('MIT')
+source=("git+https://github.com/johnae/persway.git")
+sha512sums=('SKIP')
+provides=('persway')
+conflicts=('persway')
+
+pkgver() {
+ cd "$_pkgname"
+ printf "$_pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$_pkgname"
+ cargo build --release --target-dir "./target"
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm755 "target/release/persway" "$pkgdir/usr/bin/$_pkgname"
+}
+