summaryrefslogtreecommitdiffstats
path: root/guix
diff options
context:
space:
mode:
Diffstat (limited to 'guix')
-rw-r--r--guix/PKGBUILD1
-rw-r--r--guix/guix.install18
2 files changed, 19 insertions, 0 deletions
diff --git a/guix/PKGBUILD b/guix/PKGBUILD
index 467029a..2a59b92 100644
--- a/guix/PKGBUILD
+++ b/guix/PKGBUILD
@@ -23,6 +23,7 @@ optdepends=('emacs: to enable Emacs Interface')
source=(
"ftp://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig}
"guix.service")
+install="${pkgname}.install"
sha256sums=('c54d19e948eae7ed15f63c6ad69bd8193fd1ed8128d3a6a8511f381f64a3058a'
'932f3d021ae6ea3101961c346cd8caf6aed42db23a515fd70be4c41cb49f301d'
'd0a014de859c4f5d6f760be84991b88f4855ead933368f3ab815a1deabc361ce')
diff --git a/guix/guix.install b/guix/guix.install
new file mode 100644
index 0000000..2621d0f
--- /dev/null
+++ b/guix/guix.install
@@ -0,0 +1,18 @@
+infodir=usr/share/info
+file=guix.info
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+}
+
+# vim:set ts=2 sw=2 ft=sh et: