mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-21 23:38:49 -05:00
Replace space-based indents in prototypes with tabs
The previous commit removed the Vim modelines which replaced tabs with spaces. This commit replaces the space-based indents with tabs. Tabs are generally more compatible with various user preferences regarding indentation of code. Using space-based indents is not flexible regarding user preferences at all. Signed-off-by: Jason St. John <jstjohn@purdue.edu>
This commit is contained in:
parent
1dc3de3f69
commit
a9ad5a75f2
@ -29,44 +29,44 @@ noextract=()
|
||||
md5sums=() #generate with 'makepkg -g'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make -k check
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make -k check
|
||||
}
|
||||
|
||||
package_pkg1() {
|
||||
# options and directives that can be overridden
|
||||
pkgver=
|
||||
pkgrel=
|
||||
epoch=
|
||||
pkgdesc=""
|
||||
arch=()
|
||||
url=""
|
||||
license=()
|
||||
groups=()
|
||||
depends=()
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
changelog=
|
||||
# options and directives that can be overridden
|
||||
pkgver=
|
||||
pkgrel=
|
||||
epoch=
|
||||
pkgdesc=""
|
||||
arch=()
|
||||
url=""
|
||||
license=()
|
||||
groups=()
|
||||
depends=()
|
||||
optdepends=()
|
||||
provides=()
|
||||
conflicts=()
|
||||
replaces=()
|
||||
backup=()
|
||||
options=()
|
||||
install=
|
||||
changelog=
|
||||
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install-pkg1
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install-pkg1
|
||||
}
|
||||
|
||||
package_pkg2() {
|
||||
# options and directives overrides
|
||||
pkgdesc=""
|
||||
# options and directives overrides
|
||||
pkgdesc=""
|
||||
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install-pkg2
|
||||
cd "$srcdir/$pkgbase-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install-pkg2
|
||||
}
|
||||
|
@ -29,17 +29,17 @@ noextract=()
|
||||
md5sums=() #generate with 'makepkg -g'
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make -k check
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make -k check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
@ -4,32 +4,32 @@
|
||||
|
||||
## arg 1: the new package version
|
||||
#pre_install() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
#post_install() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#pre_upgrade() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the new package version
|
||||
## arg 2: the old package version
|
||||
#post_upgrade() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
#pre_remove() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
||||
## arg 1: the old package version
|
||||
#post_remove() {
|
||||
# do something here
|
||||
# do something here
|
||||
#}
|
||||
|
Loading…
Reference in New Issue
Block a user