summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2610d745c4f06bae9a7942fe812da8ef747923f (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
# This is gross, but can totally save you if you need to fix a machine
# on which you can't easily boot install media.

pkgname=pacman-static
pkgver=2015
pkgrel=5
pkgdesc="Statically-compiled pacman (to fix or install systems without libc)"
arch=('i686' 'x86_64')
url="http://www.archlinux.org/pacman/"
license=('GPL')
makedepends=(gnupg abs asciidoc python2 fakechroot)
optdepends=('gnupg: verify package integrity')
source=(genpacmanstatic)
sha256sums=('77c706302199aa096dc990a71494f4525b819a81deab194cd2fc5ab1b6032b28')

build() {
   cd "$srcdir"
   export ASROOT
   ./genpacmanstatic
}

package() {
  install -sD "$srcdir"/overlay/usr/bin/pacman-static \
      "$pkgdir"/usr/bin/pacman-static
}