pkgs/pacman/PKGBUILD

45 lines
1 KiB
Text
Raw Normal View History

2023-12-08 03:28:18 +00:00
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=pacman
pkgver=6.0.2
pkgrel=1
pkgdesc="A library-based package manager with dependency support"
arch=("x86_64")
url="https://www.archlinux.org/pacman/"
license=("GPL")
2023-12-11 13:18:00 +00:00
depends=("curl" "libarchive" "libressl" "fakeroot")
makedepends=("ninja")
2023-12-08 03:28:18 +00:00
backup=(etc/pacman.conf etc/makepkg.conf)
source=(
"https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz"
"pacman.conf"
"makepkg.conf"
)
sha256sums=(
"7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5"
2023-12-11 13:18:00 +00:00
"ae4611ae0236b27c56ca70bc509062d7ebe1863ed6a79e7a708e1cdcc56bb288"
"78c9149c20d979ceaec5de71a5ea72d95705ba59d5903b595dff01e54075fe5b"
2023-12-08 03:28:18 +00:00
)
build() {
cd $pkgname-$pkgver
2023-12-11 13:18:00 +00:00
meson --prefix=/usr \
2023-12-08 03:28:18 +00:00
--buildtype=plain \
-Dscriptlet-shell=/usr/bin/bash \
-Dldconfig=/usr/bin/ldconfig \
build
meson compile -C build
}
package() {
cd $pkgname-$pkgver
DESTDIR=$pkgdir meson install -C build
install -dm755 $pkgdir/etc
install -m644 $srcdir/pacman.conf $pkgdir/etc
install -m644 $srcdir/makepkg.conf $pkgdir/etc
}