summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..e2610d7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}