summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Palenzuela2019-10-23 12:30:21 +0100
committerManuel Palenzuela2019-10-23 12:30:21 +0100
commit6d0f71a1adb950669f4992b45ba608768e580f3f (patch)
treeddf62c7e3fd8bda6e2ec796224b25f15c48a2f0a
downloadaur-6d0f71a1adb950669f4992b45ba608768e580f3f.tar.gz
Initial Commit
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD37
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6603f0184b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = dwmbar-git
+ pkgdesc = Simple and modular status bar for dwm.
+ pkgver = 0.r74.
+ pkgrel = 1
+ url = https://github.com/thytom/dwmbar.git
+ arch = any
+ license = GPL
+ makedepends = git
+ optdepends = dwm
+ provides = dwmbar
+ source = git://github.com/thytom/dwmbar.git
+ md5sums = SKIP
+ sha1sums = SKIP
+ sha256sums = SKIP
+
+pkgname = dwmbar-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7df26a36a96
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Manuel Palenzuela <sadshinobi@protonmail.com>
+
+author=thytom
+pkgname=dwmbar-git
+_gitname=dwmbar
+pkgver=0.r74.
+pkgrel=1
+pkgdesc='Simple and modular status bar for dwm.'
+url='https://github.com/thytom/dwmbar.git'
+arch=('any')
+license=('GPL')
+optdepends=('dwm')
+makedepends=('git')
+provides=('dwmbar')
+
+source=("git://github.com/$author/$_gitname.git")
+
+md5sums=('SKIP')
+sha1sums=('SKIP')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ printf '0.r%s.%s' \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short
+HEAD)"
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ # Install the program.
+ mkdir -p "$pkgdir/usr/share/$_gitname/modules"
+ install -Dm755 dwmbar "$pkgdir/usr/bin/$_gitname"
+ cp -a --no-preserve=ownership * "$pkgdir/usr/share/$_gitname"
+ chmod +x "$pkgdir/usr/bin/$_gitname"
+# chmod -R 777 "$pkgdir/usr/share/$_gitname"
+}