diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2015-03-10 16:11:57 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2015-03-10 16:11:57 +0800 |
commit | 3572b116d6a6f749ea43a29232551d1f24ce2b8e (patch) | |
tree | 3aa9825d887728b9693355b7d56ba951b1df270b | |
parent | d4b58965114e891efeb241762cae50c7eac6de5d (diff) | |
download | AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar.gz AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar.bz2 AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar.lz AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar.xz AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.tar.zst AUR4-PKGBUILD-3572b116d6a6f749ea43a29232551d1f24ce2b8e.zip |
guix: Handle info files in guix.install (modified from grep.install)
-rw-r--r-- | guix/.SRCINFO | 1 | ||||
-rw-r--r-- | guix/PKGBUILD | 1 | ||||
-rw-r--r-- | guix/guix.install | 18 |
3 files changed, 20 insertions, 0 deletions
diff --git a/guix/.SRCINFO b/guix/.SRCINFO index d408fdb..b090415 100644 --- a/guix/.SRCINFO +++ b/guix/.SRCINFO @@ -3,6 +3,7 @@ pkgbase = guix pkgver = 0.8.1 pkgrel = 1 url = https://www.gnu.org/software/guix/ + install = guix.install arch = x86_64 arch = i686 license = GPL 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: |