1 # vim: set ts=2 sw=2 et:
7 pkgdesc="A library-based package manager with dependency support"
9 url="https://www.archlinux.org/pacman/"
12 depends=('bash' 'glibc' 'libarchive' 'curl' 'gpgme' 'pacman-mirrorlist'
13 'gettext' 'gawk' 'coreutils' 'gnupg' 'grep')
14 makedepends=('meson' 'asciidoc' 'doxygen')
15 checkdepends=('python' 'fakechroot')
16 optdepends=('perl-locale-gettext: translation support in makepkg-template')
17 provides=('libalpm.so')
18 backup=(etc/pacman.conf
20 options=('strip' 'debug')
21 validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
22 'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
23 source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz{,.sig}
24 "fix-wkd-lookup.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/e1246baddd14ec6f4b6270b59bea0e1b639472a7.patch"
25 add-flto-to-LDFLAGS-for-clang.patch
26 makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
27 libmakepkg-add-extra-buildflags-only-when-buildflags.patch
28 make-link-time-optimization-flags-configurable.patch
31 sha256sums=('0db61456e56aa49e260e891c0b025be210319e62b15521f29d3e93b00d3bf731'
33 '8ab5b1338874d7d58e11c5d1185ea3454fcc89755f9c18faf87ff348ad1ed16c'
34 '82ff91b85f4c6ceba19f9330437e2a22aabc966c2b9e2a20a53857f98a42c223'
35 'b940e6c0c05a185dce1dbb9da0dcbebf742fca7a63f3e3308d49205afe5a6582'
36 '7d0aee976c9c71fcf7c96ef1d99aa76efe47d8c1f4451842d6d159ec7deb4278'
37 '5b43e26a76be3ed10a69d4bfb2be48db8cce359baf46583411c7f124737ebe6a'
38 '606e55f06c297d2b508bc4438890b229a1abaa68b0374a2d7f94c8e7be6792d7'
39 '072020e34f2c55b94a9a486829a7eadab0a830ddb4d8e759b0c4e6cf1bde73a6')
44 patch -Np1 -i ../add-flto-to-LDFLAGS-for-clang.patch
45 patch -Np1 -i ../makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
46 patch -Np1 -i ../libmakepkg-add-extra-buildflags-only-when-buildflags.patch
47 patch -Np1 -i ../make-link-time-optimization-flags-configurable.patch
48 patch -Np1 -i ../fix-wkd-lookup.patch
58 -Dscriptlet-shell=/usr/bin/bash \
59 -Dldconfig=/usr/bin/ldconfig \
62 meson compile -C build
74 DESTDIR="$pkgdir" meson install -C build
76 # install Arch specific stuff
77 install -dm755 "$pkgdir/etc"
78 install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
79 install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"