makedeb


ntfd 0.2.2-4


A lightweight notification daemon for fancy desktop integrations

Click here to go back to the commit logs for ntfd.

Commit:


Hash: fed7a86c9d06eeb34b5dd32b785d4e20161cf100

Message: install script update

Diff


diff --git a/.SRCINFO b/.SRCINFO
index 7d49599..3f93201 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,7 +5,6 @@ pkgbase = ntfd
 	pkgver = 0.2.2
 	pkgrel = 1
 	url = https://github.com/kamek-pf/ntfd
-	install = .install
 	arch = x86_64
 	license = LGPL3
 	provides = ntfd
diff --git a/.install b/.install
deleted file mode 100644
index 012f806..0000000
--- a/.install
+++ /dev/null
@@ -1,28 +0,0 @@
-
-## arg 1:  the new package version
-post_install() {
-  echo "
-                           ████     ██   ███████   ██████████ ████████   
-                          ░██░██   ░██  ██░░░░░██ ░░░░░██░░░ ░██░░░░░    
-                          ░██░░██  ░██ ██     ░░██    ░██    ░██         
-                          ░██ ░░██ ░██░██      ░██    ░██    ░███████    
-                          ░██  ░░██░██░██      ░██    ░██    ░██░░░░   ██
-                          ░██   ░░████░░██     ██     ░██    ░██      ░░ 
-                          ░██    ░░███ ░░███████      ░██    ░████████ ██
-                          ░░      ░░░   ░░░░░░░       ░░     ░░░░░░░░ ░░ "
-  echo -e "config.toml needs to copied to the home directory manually by the user. documentation related files are installed in the /usr/share/doc/ntfd directory\n\n"
-}
-
-post_upgrade () {
-  echo "
-                           ████     ██   ███████   ██████████ ████████   
-                          ░██░██   ░██  ██░░░░░██ ░░░░░██░░░ ░██░░░░░    
-                          ░██░░██  ░██ ██     ░░██    ░██    ░██         
-                          ░██ ░░██ ░██░██      ░██    ░██    ░███████    
-                          ░██  ░░██░██░██      ░██    ░██    ░██░░░░   ██
-                          ░██   ░░████░░██     ██     ░██    ░██      ░░ 
-                          ░██    ░░███ ░░███████      ░██    ░████████ ██
-                          ░░      ░░░   ░░░░░░░       ░░     ░░░░░░░░ ░░ "
-  echo -e "config.toml needs to copied to the home directory manually by the user. documentation related files are installed in the /usr/share/doc/ntfd directory \n\n"
-}
-
diff --git a/PKGBUILD b/PKGBUILD
index ce04f9f..75c3002 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,7 +12,7 @@ makedepends=()
 provides=("${pkgname}")
 conflicts=("${pkgname}")
 # replaces=("${pkgname}")
-install='.install'
+postinst="${pkgname}.postinst"
 
 source=(
   "$url/releases/download/${pkgver}/${pkgname}-${arch}-unknown-linux-musl"
diff --git a/ntfd.postinst b/ntfd.postinst
new file mode 100644
index 0000000..15acd82
--- /dev/null
+++ b/ntfd.postinst
@@ -0,0 +1,11 @@
+#!/bin/bash
+  echo "
+                           ████     ██   ███████   ██████████ ████████   
+                          ░██░██   ░██  ██░░░░░██ ░░░░░██░░░ ░██░░░░░    
+                          ░██░░██  ░██ ██     ░░██    ░██    ░██         
+                          ░██ ░░██ ░██░██      ░██    ░██    ░███████    
+                          ░██  ░░██░██░██      ░██    ░██    ░██░░░░   ██
+                          ░██   ░░████░░██     ██     ░██    ░██      ░░ 
+                          ░██    ░░███ ░░███████      ░██    ░████████ ██
+                          ░░      ░░░   ░░░░░░░       ░░     ░░░░░░░░ ░░ "
+  echo -e "config.toml needs to copied to the home directory manually by the user. documentation related files are installed in the /usr/share/doc/ntfd directory\n\n"