summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD49
1 files changed, 49 insertions, 0 deletions
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
+}