summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmu2018-09-08 22:47:38 -0500
committerrmu2018-09-08 22:47:38 -0500
commit3718425beb1ce7c7e78c72502731d7769824d7a6 (patch)
treeb415769a5d5328d47f43370449dd36dd4c376cce
downloadaur-3718425beb1ce7c7e78c72502731d7769824d7a6.tar.gz
initial commit
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD29
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..bc08042c431
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = swayblocks
+ pkgdesc = another block manager for i3bar/swaybar
+ pkgver = 0.0.1
+ pkgrel = 1
+ url = https://github.com/rei2hu/swayblocks
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = elixir
+ depends = elixir
+ optdepends = acpi: for battery script,
+ optdepends = brightnessctl: for brightness script,
+ optdepends = cmus: for cmus script,
+ optdepends = alsa-utils: for volume script
+ provides = swayblocks
+ conflicts = swayblocks
+ source = git+https://github.com/rei2hu/swayblocks
+ md5sums = SKIP
+
+pkgname = swayblocks
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b749eee54a9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: reimu <r2hkri@gmail.com>
+pkgname=swayblocks
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="another block manager for i3bar/swaybar"
+arch=("i686" "x86_64")
+url="https://github.com/rei2hu/$pkgname"
+license=("GPL")
+conflicts=("$pkgname")
+provides=("$pkgname")
+depends=("elixir")
+makedepends=("elixir")
+optdepends=(
+ "acpi: for battery script",
+ "brightnessctl: for brightness script",
+ "cmus: for cmus script",
+ "alsa-utils: for volume script")
+source=("git+$url")
+md5sums=("SKIP")
+
+build() {
+ cd "$srcdir/$pkgname"
+ make create
+ make build
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/bin" && mv "$srcdir/$pkgname/swayblocks" "$pkgdir/usr/bin"
+}