MAKEPKG-TEMPLATE(1) Pacman MAKEPKG-TEMPLATE(1) (NAME) makepkg-template - (SYNOPSIS) makepkg-template [options] (DESCRIPTION) makepkg-template PKGBUILD . PKGBUILD (template) (markers) (in-place) PKGBUILD . PKGBUILD . "." "source" makepkg-template PKGBUILD (inline) . (bash) : # template start; key=value; key2=value2; ... # template end; : name () version. - "@" "+" "." "-" "_" . "." . : # template input; key=value; makepkg-template . "$template_name-$version.template" (symlink) "$template_name.template" . makepkg-template "$template_name.template" . PKGBUILD . : diff -u <(makepkg-template -o -) PKGBUILD PKGBUILD . / start/input . (OPTIONS) -p, --input build script . -o, --output build script . -n, --newest . --template-dir . . PKGBUILD (EXAMPLE PKGBUILD) pkgname=perl-config-simple pkgver=4.58 pkgrel=1 pkgdesc="simple configuration file class" arch=('any') license=('PerlArtistic' 'GPL') depends=('perl') source=("http://search.cpan.org/CPAN/authors/id/S/SH/SHERZODR/Config-Simple-${pkgver}.tar.gz") sha256sums=('dd9995706f0f9384a15ccffe116c3b6e22f42ba2e58d8f24ed03c4a0e386edb4') _distname="Config-Simple" # template start; name=perl-module; version=1.0; _distdir="${_distname}-${pkgver}" url="https://metacpan.org/release/${_distname}" options+=('!emptydirs') build() { cd "$srcdir/$_distdir" perl Makefile.PL INSTALLDIRS=vendor make } check() { cd "$srcdir/$_distdir" make test } package() { cd "$srcdir/$_distdir" make DESTDIR="$pkgdir" install } # template end; (SEE ALSO) makepkg(8), PKGBUILD(5) pacman pacman https://archlinux.org/pacman . (BUGS) . https://gitlab.archlinux.org/pacman/pacman/-/issues . (AUTHORS) : o Allan McRae o Andrew Gregory o Morgan Adamiec : o Judd Vinet o Aurelien Foret o Aaron Griffin o Dan McGee o Xavier Chantry o Nagy Gabor o Dave Reisner o Eli Schwartz git shortlog -s pacman.git . Pacman 7.1.0 2026-05-06 MAKEPKG-TEMPLATE(1)