1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

Add {PKGBUILD,install}.proto to contrib/ directory

Also update README and Makefile.am in the contrib/ directory.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-07-11 10:59:27 -04:00
parent cb164c3130
commit 147a32b32d
4 changed files with 87 additions and 1 deletions

View File

@ -1,8 +1,12 @@
EXTRA_DIST = \
PKGBUILD.proto \
PKGBUILD.vim \
bash_completion \
pacsearch \
install.proto \
pacdiff \
pacsearch \
re-pacman \
vimproject \
wget-xdelta.sh \
zsh_completion \
README

35
contrib/PKGBUILD.proto Normal file
View File

@ -0,0 +1,35 @@
# 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=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
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:

View File

@ -1,5 +1,8 @@
Here is a brief description of the files included in this directory:
{PKGBUILD,install}.proto - prototype PKGBUILD and install files for creating
packages using makepkg.
PKGBUILD.vim - a vim/gvim syntax file for PKGBUILDs. Colors known variable
names, highlights common errors such as invalid characters in pkgname or
pkgver, etc.
@ -21,3 +24,7 @@ database entries. Useful for reuse, or possible config file extension.
vimproject - a project file for the vim project plugin (some files listed
may need to be updated).
wget-xdelta.sh - A download script for pacman which allows binary deltas
generated with makepkg to be used instead of downloading full binary packages.
This should cut download sizes for some package upgrades significantly.

40
contrib/install.proto Normal file
View File

@ -0,0 +1,40 @@
# This is a default template for a post-install scriptlet. You can
# remove any functions you don't need (and this header).
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
/bin/true
}
op=$1
shift
["$(type -t "$op")" = "function" ] && $op "$@"
# vim:set ts=2 sw=2 et: