summaryrefslogtreecommitdiff
path: root/pcr/guix
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/guix')
-rw-r--r--pcr/guix/PKGBUILD55
-rw-r--r--pcr/guix/guix.install30
2 files changed, 85 insertions, 0 deletions
diff --git a/pcr/guix/PKGBUILD b/pcr/guix/PKGBUILD
new file mode 100644
index 000000000..fa2f9bbd3
--- /dev/null
+++ b/pcr/guix/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer (Arch): lantw44 (at) gmail (dot) com
+# Modified from guix-git 20130119 PKGBUILD
+
+# In order to verify the PGP signature of the source archive, you may need to
+# use this command to download the needed public key:
+# gpg --recv-keys 090B11993D9AEBB5
+
+pkgname=guix
+pkgver=0.9.0
+pkgrel=2
+pkgdesc="GNU guix is a purely functional package manager"
+arch=('x86_64' 'i686')
+url="https://www.gnu.org/software/guix/"
+license=('GPL')
+makedepends=(
+ 'bash-completion'
+ 'emacs' # Please remove this if you are not going to use guix in emacs
+ 'guile-json')
+depends=(
+ 'guile>=2.0.7'
+ 'sqlite>=3.6.19'
+ 'bzip2'
+ 'libgcrypt')
+optdepends=(
+ 'bash-completion: to enable bash programmable completion'
+ 'emacs: to enable Emacs Interface'
+ 'guile-json: to import packages from cpan, gem, pypi')
+source=(
+ "ftp://alpha.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.sig})
+install="${pkgname}.install"
+sha1sums=('765de53aa344a801c3d376cf1e050650cec58039'
+ 'ab25cfdb39ff6d53458c07a8ab9b397a7bc8c9c5')
+validpgpkeys=('3CE464558A84FDC69DB40CFB090B11993D9AEBB5')
+
+build() {
+ bash_completion_dir="`pkg-config --variable=completionsdir bash-completion`"
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr --sbindir=/usr/bin --localstatedir=/var \
+ --sysconfdir=/etc --with-bash-completion-dir="${bash_completion_dir}" \
+ --disable-rpath
+ make
+}
+
+#check() {
+# cd ${srcdir}/${pkgname}-${pkgver}
+# # Don't run container tests if the kernel doesn't support user namespace
+# zgrep "CONFIG_USER_NS=y" /proc/config.gz || \
+# sed -i 's|tests/guix-environment-container.sh||' Makefile
+# make check
+#}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/pcr/guix/guix.install b/pcr/guix/guix.install
new file mode 100644
index 000000000..54f7659b6
--- /dev/null
+++ b/pcr/guix/guix.install
@@ -0,0 +1,30 @@
+infodir=usr/share/info
+file=guix.info
+
+post_install() {
+ echo "Guix 0.8.3 already provides a systemd service file in its release,"
+ echo "so the one included in AUR package is now removed. Please use the"
+ echo "following commands to keep your installation compatible with the"
+ echo "new service file:"
+ echo
+ echo " systemctl disable guix"
+ echo " systemctl enable guix-daemon"
+ echo " groupmod -n guixbuild guix-builder"
+ echo " usermod -l guixbuild guix-builder"
+ echo
+ echo "If you have /etc/systemd/system/guix.service.d, please also remember"
+ echo "to review its content and rename it to guix-daemon.service.d."
+ [[ -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: