ALPM-PACKAGE-BASE(7)
π ALPM-PACKAGE-BASE(7) β the group chat edition
okay so this is the alpm-package-base page, and it lives in the Miscellaneous Information Manual, section 7. grab a snack, bestie, we're learning where packages come from π
β¨ NAME β¨
package base β an identifier that tracks from which sources an ALPM based package originates. it's giving "everyone's birth certificate, but for packages" π
πΈ DESCRIPTION πΈ
the package base format is literally just an identifier, and what it does is describe the source origin of each alpm-package file. like, which source did you come from, bestie? π«Ά it's especially iconic in alpm-split-package files, where it keeps track of the sources each package file gets built from.
more specifically (ngl, this one gets around), the alpm-package-base format shows up allll throughout the package management life cycle:
- in build scripts and source metadata files (i.e.
PKGBUILDandSRCINFO) π οΈ - in file formats for package metadata (i.e.
BUILDINFOandPKGINFO) π¦ - in file formats for repository metadata (i.e.
alpm-repo-desc) ποΈ - and in system state metadata (i.e.
alpm-db-desc) πΎ
π¦ General Format
okay so the identifier name for alpm-package-base can differ depending on context β different vibes, different contexts, we get it β however, the value restrictions for it are literally the same as those for alpm-package-name. no cap, same rules, always. β
π EXAMPLES π
the PKGBUILD of a package named example, that implicitly specifies its alpm-package-base as example. (implicit?? yes bestie, it just knows.)
pkgname=example
pkgver=1.0.0
pkgrel=1
pkgdesc="An example package"
arch=(any)
url="https://example.org"
license=('CC0-1.0')
package() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "example\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
the PKGBUILD of a package named example, that explicitly specifies its alpm-package-base as something-else. plot twist π«’
pkgname=example
pkgbase=something-else
pkgver=1.0.0
pkgrel=1
pkgdesc="An example package"
arch=(any)
url="https://example.org"
license=('CC0-1.0')
package() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "example\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
the PKGBUILD of a split package setup with the packages example and other-example that both share the implicit alpm-package-base example. shared base, two packages, main character energy π
pkgname=(
example
other-example
)
pkgver=1.0.0
pkgrel=1
pkgdesc="An example package"
arch=(any)
url="https://example.org"
license=('CC0-1.0')
package_example() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "example\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
package_other-example() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "other-example\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
the PKGBUILD of a split package setup with the packages example1 and example2 that both share the explicit alpm-package-base example. look at them, matching outfits π
pkgname=(
example1
example2
)
pkgbase=example
pkgver=1.0.0
pkgrel=1
pkgdesc="An example package"
arch=(any)
url="https://example.org"
license=('CC0-1.0')
package_example1() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "example1\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
package_example2() {
install -vdm 755 "$pkgdir/usr/share/doc/$pkgname/"
printf "example2\n" > "$pkgdir/usr/share/doc/$pkgname/example.txt"
}
π SEE ALSO π
go read these next, bestie, they're all linked and they're all worth it π₯
BUILDINFO(5)PKGBUILD(5)PKGINFO(5)SRCINFO(5)alpm-db-desc(7)alpm-package(7)alpm-package-name(7)alpm-repo-desc(7)alpm-split-package(7)
π reminder that the value restrictions here are the same as alpm-package-name β don't go inventing your own rules, iykyk.
and that's the whole page, bestie π§ this one's from the Miscellaneous Information Manual, section 7 β mwah, go slay your PKGBUILD π
β¨
π¦ where this page comes from
- arch rolling: alpm-docs 0.13.0-1 Β· CC-BY-SA-4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms