summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 524cd2abeb69a5abc40b0e31d40ee5f51b64d650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: lantw44 (at) gmail (dot) com

pkgname=guix-git
pkgver=20160111
pkgrel=1
pkgdesc="A purely functional package manager"
arch=('i686' 'x86_64')
depends=('bzip2'
         'glibc'
         'gnutls'
         'graphviz'
         'guile'
         'guile-json'
         'libgcrypt'
         'patch'
         'sqlite'
         'xz')
makedepends=('autoconf'
             'automake'
             'gettext'
             'git'
             'help2man'
             'm4'
             'make'
             'pkg-config')
optdepends=('emacs: emacs interface')
url="https://www.gnu.org/software/guix/"
license=('GPL3')
source=(git://git.sv.gnu.org/guix.git)
sha256sums=('SKIP')
provides=('guix')
conflicts=('guix')
install=guix.install

pkgver() {
  cd ${pkgname%-git}
  git log -1 --format="%cd" --date=short | sed "s|-||g"
}

build() {
  cd ${pkgname%-git}

  _compl_dir="$(pkg-config --variable=completionsdir bash-completion)"

  msg2 'Building...'
  ./bootstrap
  ./configure \
    --prefix=/usr \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib/guix \
    --sysconfdir=/etc \
    --sharedstatedir=/usr/share/guix \
    --localstatedir=/var/lib/guix \
    --with-bash-completion-dir="$_compl_dir" \
    --disable-rpath \
    --with-gnu-ld
  make
}

package() {
  cd ${pkgname%-git}

  msg2 'Installing...'
  make DESTDIR="$pkgdir" install

  msg2 'Cleaning up pkgdir...'
  find "$pkgdir" -type d -name .git -exec rm -r '{}' +
}