pkgs/pacman/PKGBUILD

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"
"a4137a05fbfa4017ce13cfda1fa361f188d3eb7c098e326c498edf458b7af24d"
"8f5bfb2f9bfbac6af151f1a41c9ce64d1065bd263ad998a80732e884f22a61d7"
)
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
}