summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD49
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe89a1c7aab
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = eww-git
+ pkgdesc = ElKowar's wacky widgets
+ pkgver = dunno
+ pkgrel = 1
+ url = https://github.com/elkowar/eww
+ arch = any
+ license = GPL
+ makedepends = cargo
+ makedepends = git
+ provides = eww
+ source = git+https://github.com/elkowar/eww
+ md5sums = SKIP
+
+pkgname = eww-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d001cbe036e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Fronkles McFranko <mrelfranko@disroot.org>
+pkgname=eww-git
+_pkgname=eww
+pkgver=dunno
+pkgrel=1
+epoch=
+pkgdesc="ElKowar's wacky widgets"
+arch=('any')
+url="https://github.com/elkowar/eww"
+license=('GPL')
+groups=()
+depends=()
+makedepends=("cargo" "git")
+checkdepends=()
+optdepends=()
+provides=("$_pkgname")
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=
+changelog=
+source=("git+https://github.com/elkowar/eww")
+noextract=()
+md5sums=("SKIP")
+validpgpkeys=()
+
+pkgver() {
+ cd $_gitname
+ printf "%s" "$(git describe --always --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
+}
+
+build() {
+ cd "$_pkgname"
+ cargo build
+}
+
+check() {
+ cd "$_pkgname"
+ cargo check
+}
+
+package() {
+ cd "$_pkgname"
+ cargo install --path . --root "$pkgdir/usr"
+
+ cd "$pkgdir/usr"
+ rm .crates2.json .crates.toml
+}