pkgs/pacman/PKGBUILD
2023-12-08 21:44:38 -08:00

43 lines
984 B
Bash

# 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")
backup=(etc/pacman.conf etc/makepkg.conf)
source=(
"https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz"
"pacman.conf"
"makepkg.conf"
)
sha256sums=(
"7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5"
"169638c79e0f53fbfce8e437deb61fe2139271b534b9d2c1d90c378fb02a0095"
"ca31972632118b7091698e353444e32b1594a465b8e768f90c5a5a1a1dee76c5"
)
build() {
cd $pkgname-$pkgver
meson \
--prefix=/usr \
--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
}