mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 03:25:01 -05:00
2cabe336eb
Currently, a changelog is added to a package if a specific file with a hardcoded name exists in the PKGBUILD's directory. This approach is not pretty and also inconsistent with the handling of install files, but it works. With the introduction of split PKGBUILDs, however, a drawback in this old behavior has arisen: you only have the possibility to include one specific changelog file in either every package defined in the PKGBUILD or in none. The use of an additional variable, `changelog`, works around this issue and makes it possible to include a changelog in only some of the packages, and besides, each package of the PKGBUILD can have its own changelog file. Signed-off-by: Cedric Staniewski <cedric@gmx.ca> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
61 lines
1.1 KiB
Protocol Buffer
61 lines
1.1 KiB
Protocol Buffer
# This is an example of a PKGBUILD for splitting packages. Use this as a
|
|
# start to creating your own, and remove these comments. For more information,
|
|
# see 'man PKGBUILD'. NOTE: Please fill out the license field for your package!
|
|
# If it is unknown, then please put 'unknown'.
|
|
|
|
# Contributor: Your Name <youremail@domain.com>
|
|
pkgname=('pkg1' 'pkg2')
|
|
pkgbase=""
|
|
pkgver=VERSION
|
|
pkgrel=1
|
|
pkgdesc=""
|
|
arch=()
|
|
url=""
|
|
license=('GPL')
|
|
groups=()
|
|
depends=()
|
|
makedepends=()
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
install=
|
|
changelog=
|
|
source=($pkgbase-$pkgver.tar.gz)
|
|
noextract=()
|
|
md5sums=() #generate with 'makepkg -g'
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgbase-$pkgver"
|
|
./configure --prefix=/usr
|
|
make || return 1
|
|
}
|
|
|
|
package_pkg1() {
|
|
# options and directives that can be overridden
|
|
pkgdesc=""
|
|
license=()
|
|
groups=()
|
|
depends=()
|
|
optdepends=()
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
install=
|
|
changelog=
|
|
|
|
cd "$srcdir/$pkgbase-$pkgver"
|
|
make DESTDIR="$pkgdir/" install-pkg1
|
|
}
|
|
|
|
package_pkg2() {
|
|
# options and directives overrides
|
|
pkgdesc=""
|
|
|
|
cd "$srcdir/$pkgbase-$pkgver"
|
|
make DESTDIR="$pkgdir/" install-pkg2
|
|
}
|