Add prepare function to PKGBUILD proto files
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
769facca22
commit
99b8d78bc6
|
@ -24,10 +24,16 @@ backup=()
|
||||||
options=()
|
options=()
|
||||||
install=
|
install=
|
||||||
changelog=
|
changelog=
|
||||||
source=($pkgbase-$pkgver.tar.gz)
|
source=($pkgbase-$pkgver.tar.gz
|
||||||
|
$pkgname-$pkgver.patch)
|
||||||
noextract=()
|
noextract=()
|
||||||
md5sums=() #generate with 'makepkg -g'
|
md5sums=() #generate with 'makepkg -g'
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgbase-$pkgver"
|
cd "$srcdir/$pkgbase-$pkgver"
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
|
|
|
@ -24,10 +24,16 @@ backup=()
|
||||||
options=()
|
options=()
|
||||||
install=
|
install=
|
||||||
changelog=
|
changelog=
|
||||||
source=($pkgname-$pkgver.tar.gz)
|
source=($pkgname-$pkgver.tar.gz
|
||||||
|
$pkgname-$pkgver.patch)
|
||||||
noextract=()
|
noextract=()
|
||||||
md5sums=() #generate with 'makepkg -g'
|
md5sums=() #generate with 'makepkg -g'
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
patch -p1 -i "$srcdir/$pkgname-$pkgver.patch"
|
||||||
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$srcdir/$pkgname-$pkgver"
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
|
|
Loading…
Reference in New Issue