Pacman packages: Difference between revisions

From wikinotes
No edit summary
Line 24: Line 24:
# required
# required
pkgname=
pkgname=
pkgver=
pkgver=1.1.1    # '[0-9a-Z.@_+-]+', versions must increase alphanumerically
pkgrel=
pkgrel=2        # integer increased for each new build of the same package version
arch=
arch=('x86_64')  # array of supported cpu architectures. ('any') indicates supports any arch


# optional
# optional
license=
license=('MIT')  # array of applicable license-names (see /usr/share/licences/common/)
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- PKGBUILD Syntax -->
</blockquote><!-- PKGBUILD Syntax -->

Revision as of 22:59, 25 December 2021

Archlinux packages are described in PKGBUILD files, and built using makepkg.
They are expressed in bash shellscript.

Documentation

PKGBUILD docs https://wiki.archlinux.org/title/PKGBUILD

Usage

cd ${DIR_W_PKGBUILD}
makepkg

PKGBUILD Syntax

# required
pkgname=
pkgver=1.1.1     # '[0-9a-Z.@_+-]+', versions must increase alphanumerically
pkgrel=2         # integer increased for each new build of the same package version
arch=('x86_64')  # array of supported cpu architectures. ('any') indicates supports any arch

# optional
license=('MIT')  # array of applicable license-names (see /usr/share/licences/common/)