summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtifChy2021-08-31 01:37:18 +0600
committerAtifChy2021-08-31 01:37:18 +0600
commit6dc7b9878882074be977c5371003256fc022650b (patch)
treede7a331d8909b6958f87fb0a48bf6b6b80590459
parentbf9a12129a640b2749685cffe4f47d948a4ff8de (diff)
downloadaur-6dc7b9878882074be977c5371003256fc022650b.tar.gz
added a post install command
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD16
-rw-r--r--eww.install11
3 files changed, 16 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c2dfaf01095a..c23eabfe58b7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = eww-wayland-git
pkgdesc = ElKowar's wacky widgets (Wayland Only)
pkgver = 0.1.0.r164.g70285e0
- pkgrel = 2
+ pkgrel = 3
url = https://github.com/elkowar/eww
+ install = eww.install
arch = any
license = MIT
makedepends = rustup
diff --git a/PKGBUILD b/PKGBUILD
index 8b2276122064..4fcffea9fc99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=eww-wayland-git
_pkgname=eww
pkgver=0.1.0.r164.g70285e0
-pkgrel=2
+pkgrel=3
epoch=
pkgdesc="ElKowar's wacky widgets (Wayland Only)"
arch=('any')
@@ -18,7 +18,7 @@ conflicts=("eww")
replaces=()
backup=()
options=()
-install=
+install="${_pkgname}.install"
changelog=
source=("git+https://github.com/elkowar/eww")
noextract=()
@@ -39,18 +39,8 @@ build() {
package() {
cd "$_pkgname"
- install -Dm755 target/release/eww "${pkgdir}/usr/bin"
+ install -Dm755 target/release/eww "${pkgdir}/usr/bin/${_pkgname}"
mkdir -p "${pkgdir}/etc/xdg/${_pkgname}"
cp -r examples/eww-bar "${pkgdir}/etc/xdg/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-
- echo "\
-_____________________________________________________________________
-| |
-| The example config can be found in /etc/xdg/eww |
-| |
-| For better experience, please write your own config. |
-| WIKI: https://elkowar.github.io/eww/configuration.html |
-| |
-|___________________________________________________________________|"
}
diff --git a/eww.install b/eww.install
new file mode 100644
index 000000000000..3d55ba90bd60
--- /dev/null
+++ b/eww.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo "\
+_____________________________________________________________________
+| |
+| The example config can be found in /etc/xdg/eww |
+| |
+| For better experience, please write your own config. |
+| WIKI: https://elkowar.github.io/eww/configuration.html |
+| |
+|___________________________________________________________________|"
+}