mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-11 20:05:07 -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>
38 lines
749 B
Protocol Buffer
38 lines
749 B
Protocol Buffer
# This is an example PKGBUILD file. 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=NAME
|
|
pkgver=VERSION
|
|
pkgrel=1
|
|
pkgdesc=""
|
|
arch=()
|
|
url=""
|
|
license=('GPL')
|
|
groups=()
|
|
depends=()
|
|
makedepends=()
|
|
optdepends=()
|
|
provides=()
|
|
conflicts=()
|
|
replaces=()
|
|
backup=()
|
|
options=()
|
|
install=
|
|
changelog=
|
|
source=($pkgname-$pkgver.tar.gz)
|
|
noextract=()
|
|
md5sums=() #generate with 'makepkg -g'
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr
|
|
make || return 1
|
|
make DESTDIR="$pkgdir/" install
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|