Commit ec1c0313 authored by Timo Teräs's avatar Timo Teräs

main/[various]: update config.sub

parent f90a26bb
...@@ -55,6 +55,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -55,6 +55,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
......
...@@ -18,7 +18,7 @@ source="http://distfiles.audacious-media-player.org/$pkgname-$pkgver.tar.bz2 ...@@ -18,7 +18,7 @@ source="http://distfiles.audacious-media-player.org/$pkgname-$pkgver.tar.bz2
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) *.patch)
......
...@@ -20,6 +20,7 @@ _builddir="$srcdir"/audacity-src-$pkgver ...@@ -20,6 +20,7 @@ _builddir="$srcdir"/audacity-src-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -22,6 +22,7 @@ _builddir="$srcdir"/CEGUI-0.6.2 ...@@ -22,6 +22,7 @@ _builddir="$srcdir"/CEGUI-0.6.2
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -15,7 +15,14 @@ subpackages="$pkgname-doc" ...@@ -15,7 +15,14 @@ subpackages="$pkgname-doc"
source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz source="http://darkice.googlecode.com/files/$pkgname-$pkgver.tar.gz
darkice.initd darkice.initd
darkice.confd" darkice.confd"
_builddir=$srcdir/$pkgname-$pkgver _builddir=$srcdir/$pkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$_builddir" cd "$_builddir"
./configure \ ./configure \
......
...@@ -18,6 +18,7 @@ _builddir="$srcdir"/farstream-$pkgver ...@@ -18,6 +18,7 @@ _builddir="$srcdir"/farstream-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -21,6 +21,7 @@ _builddir="$srcdir"/farstream-$pkgver ...@@ -21,6 +21,7 @@ _builddir="$srcdir"/farstream-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -27,6 +27,7 @@ _builddir="$srcdir"/$pkgname-server-$pkgver ...@@ -27,6 +27,7 @@ _builddir="$srcdir"/$pkgname-server-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
# we dont have libnsl # we dont have libnsl
sed -i 's/nsl, //g' configure.in || return 1 sed -i 's/nsl, //g' configure.in || return 1
......
...@@ -21,6 +21,7 @@ source="http://www.gnokii.org/download/gnokii/gnokii-$pkgver.tar.bz2 ...@@ -21,6 +21,7 @@ source="http://www.gnokii.org/download/gnokii/gnokii-$pkgver.tar.bz2
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ source="http://ftp.gnome.org/pub/GNOME/sources/gnome-bluetooth/${pkgver%.*}/gnom ...@@ -20,6 +20,7 @@ source="http://ftp.gnome.org/pub/GNOME/sources/gnome-bluetooth/${pkgver%.*}/gnom
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) *.patch)
......
...@@ -42,6 +42,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}" ...@@ -42,6 +42,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -19,6 +19,7 @@ source="http://ftp.gnome.org/pub/GNOME/sources/gnome-disk-utility/${pkgver%.*}/g ...@@ -19,6 +19,7 @@ source="http://ftp.gnome.org/pub/GNOME/sources/gnome-disk-utility/${pkgver%.*}/g
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
patch -Np1 -i "$srcdir/fix-freeze.patch" patch -Np1 -i "$srcdir/fix-freeze.patch"
patch -Np1 -i "$srcdir/exp2.patch" patch -Np1 -i "$srcdir/exp2.patch"
} }
......
...@@ -32,6 +32,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}" ...@@ -32,6 +32,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -41,6 +41,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}" ...@@ -41,6 +41,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -54,6 +54,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}" ...@@ -54,6 +54,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -16,6 +16,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -16,6 +16,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
} }
build() { build() {
......
...@@ -12,6 +12,7 @@ source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.b ...@@ -12,6 +12,7 @@ source="http://gstreamer.freedesktop.org/src/gst-ffmpeg/gst-ffmpeg-$pkgver.tar.b
_builddir="$srcdir"/gst-ffmpeg-$pkgver _builddir="$srcdir"/gst-ffmpeg-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -17,8 +17,15 @@ makedepends="gst-plugins-base-dev gstreamer-dev xvidcore-dev bzip2-dev ...@@ -17,8 +17,15 @@ makedepends="gst-plugins-base-dev gstreamer-dev xvidcore-dev bzip2-dev
#'libdca>=0.0.5' 'exempi>=2.1.0' 'jack-audio-connection-kit>=0.116.2' 'musicbrainz>=2.1.5' 'libcdaudio>=0.99.12' 'libmpcdec>=1.2.6' 'mjpegtools>=1.9.0' 'libdvdnav>=4.1.3' 'liblrdf>=0.4.0' 'libofa>=0.9.3') #'libdca>=0.0.5' 'exempi>=2.1.0' 'jack-audio-connection-kit>=0.116.2' 'musicbrainz>=2.1.5' 'libcdaudio>=0.99.12' 'libmpcdec>=1.2.6' 'mjpegtools>=1.9.0' 'libdvdnav>=4.1.3' 'liblrdf>=0.4.0' 'libofa>=0.9.3')
source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$pkgver.tar.bz2" source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$pkgver.tar.bz2"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$srcdir"/gst-plugins-bad-$pkgver cd "$_builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -34,7 +41,7 @@ build() { ...@@ -34,7 +41,7 @@ build() {
} }
package() { package() {
cd "$srcdir"/gst-plugins-bad-$pkgver cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
find "$pkgdir" -name '*.la' -delete find "$pkgdir" -name '*.la' -delete
} }
......
...@@ -39,6 +39,12 @@ source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$p ...@@ -39,6 +39,12 @@ source="http://gstreamer.freedesktop.org//src/gst-plugins-bad/gst-plugins-bad-$p
ldpath="/usr/lib/gstreamer-1.0" ldpath="/usr/lib/gstreamer-1.0"
_builddir="$srcdir"/gst-plugins-bad-$pkgver _builddir="$srcdir"/gst-plugins-bad-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$_builddir" cd "$_builddir"
./configure \ ./configure \
......
...@@ -32,6 +32,7 @@ _builddir="$srcdir"/gst-plugins-base-$pkgver ...@@ -32,6 +32,7 @@ _builddir="$srcdir"/gst-plugins-base-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
} }
build() { build() {
......
...@@ -23,6 +23,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -23,6 +23,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -17,6 +17,7 @@ subpackages="$pkgname-lang" ...@@ -17,6 +17,7 @@ subpackages="$pkgname-lang"
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -28,6 +28,11 @@ ldpath="/usr/lib/gstreamer-1.0" ...@@ -28,6 +28,11 @@ ldpath="/usr/lib/gstreamer-1.0"
_builddir="$srcdir"/gst-plugins-ugly-$pkgver _builddir="$srcdir"/gst-plugins-ugly-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$_builddir" cd "$_builddir"
./configure \ ./configure \
......
...@@ -20,6 +20,7 @@ _builddir="$srcdir/$pkgname-$pkgver" ...@@ -20,6 +20,7 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ source="http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz ...@@ -20,6 +20,7 @@ source="http://downloads.xiph.org/releases/$pkgname/$pkgname-$pkgver.tar.gz
prepare() { prepare() {
cd "$srcdir"/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
update_config_sub || return 1
patch -p1 -i "$srcdir"/conf-change-owner.patch patch -p1 -i "$srcdir"/conf-change-owner.patch
} }
......
...@@ -23,6 +23,7 @@ _builddir="$srcdir"/libdv-$pkgver ...@@ -23,6 +23,7 @@ _builddir="$srcdir"/libdv-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -18,6 +18,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}" ...@@ -18,6 +18,7 @@ _builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -18,6 +18,7 @@ _builddir="$srcdir"/libnice-$pkgver ...@@ -18,6 +18,7 @@ _builddir="$srcdir"/libnice-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -17,6 +17,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -17,6 +17,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -19,6 +19,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -19,6 +19,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -19,6 +19,7 @@ _builddir="$srcdir/$pkgname-$pkgver" ...@@ -19,6 +19,7 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
......
...@@ -19,6 +19,7 @@ _builddir="$srcdir"/mp3splt-gtk-$pkgver ...@@ -19,6 +19,7 @@ _builddir="$srcdir"/mp3splt-gtk-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,8 +20,15 @@ source="http://www.musicpd.org/download/mpd/${pkgver%.*}/mpd-$pkgver.tar.xz ...@@ -20,8 +20,15 @@ source="http://www.musicpd.org/download/mpd/${pkgver%.*}/mpd-$pkgver.tar.xz
mpd.confd mpd.confd
" "
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$srcdir"/$pkgname-$pkgver cd "$_builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -36,7 +43,7 @@ build() { ...@@ -36,7 +43,7 @@ build() {
} }
package() { package() {
cd "$srcdir"/$pkgname-$pkgver cd "$_builddir"
make DESTDIR="$pkgdir" install make DESTDIR="$pkgdir" install
#provide a config that works by default #provide a config that works by default
......
...@@ -15,6 +15,7 @@ source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2 ...@@ -15,6 +15,7 @@ source="http://www.kernel.org/pub/linux/bluetooth/$pkgname-$pkgver.tar.bz2
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
...@@ -22,8 +23,7 @@ prepare() { ...@@ -22,8 +23,7 @@ prepare() {
done done
} }
build () build() {
{
cd "$srcdir"/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
......
...@@ -13,6 +13,12 @@ subpackages="$pkgname-dev libopenobex" ...@@ -13,6 +13,12 @@ subpackages="$pkgname-dev libopenobex"
source="http://downloads.sourceforge.net/project/openobex/openobex/$pkgver/openobex-$pkgver-Source.tar.gz" source="http://downloads.sourceforge.net/project/openobex/openobex/$pkgver/openobex-$pkgver-Source.tar.gz"
_builddir="$srcdir"/openobex-$pkgver-Source _builddir="$srcdir"/openobex-$pkgver-Source
prepare() {
cd "$_builddir"
update_config_sub || return 1
}
build() { build() {
cd "$_builddir" cd "$_builddir"
./configure \ ./configure \
......
...@@ -19,6 +19,7 @@ _builddir="$srcdir"/pam-pgsql-$pkgver ...@@ -19,6 +19,7 @@ _builddir="$srcdir"/pam-pgsql-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ source="http://archive.xfce.org/src/apps/parole/$_branch/parole-$pkgver.tar.bz2" ...@@ -20,6 +20,7 @@ source="http://archive.xfce.org/src/apps/parole/$_branch/parole-$pkgver.tar.bz2"
prepare() { prepare() {
cd "$srcdir"/$pkgname-$pkgver cd "$srcdir"/$pkgname-$pkgver
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ _builddir="$srcdir"/$pkgname-$pkgver ...@@ -20,6 +20,7 @@ _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -16,6 +16,7 @@ _builddir="$srcdir/$pkgname-$pkgver" ...@@ -16,6 +16,7 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2 ...@@ -20,6 +20,7 @@ source="http://downloads.sourceforge.net/pidgin/pidgin-$pkgver.tar.bz2
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case "$i" in case "$i" in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -29,12 +29,15 @@ replaces="poppler-glib" ...@@ -29,12 +29,15 @@ replaces="poppler-glib"
depends_dev="$makedepends" depends_dev="$makedepends"
source="http://poppler.freedesktop.org/poppler-$pkgver.tar.gz" source="http://poppler.freedesktop.org/poppler-$pkgver.tar.gz"
_builddir="$srcdir/$_realname-$pkgver"
prepare() { prepare() {
return 0 cd "$_builddir"
update_config_sub || return 1
} }
build() { build() {
cd "$srcdir"/$_realname-$pkgver cd "$_builddir"
./configure \ ./configure \
--build=$CBUILD \ --build=$CBUILD \
--host=$CHOST \ --host=$CHOST \
...@@ -54,7 +57,7 @@ build() { ...@@ -54,7 +57,7 @@ build() {
} }
package() { package() {
cd "$srcdir"/$_realname-$pkgver cd "$_builddir"
install -D -m644 poppler-qt4.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt4.pc install -D -m644 poppler-qt4.pc "$pkgdir"/usr/lib/pkgconfig/poppler-qt4.pc
cd qt4 cd qt4
make DESTDIR="$pkgdir" install || return 1 make DESTDIR="$pkgdir" install || return 1
......
...@@ -18,6 +18,7 @@ _builddir="$srcdir"/$_pkgname-$pkgver ...@@ -18,6 +18,7 @@ _builddir="$srcdir"/$_pkgname-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -20,6 +20,7 @@ source="http://downloads.sourceforge.net/recordmydesktop/recordmydesktop-$pkgver ...@@ -20,6 +20,7 @@ source="http://downloads.sourceforge.net/recordmydesktop/recordmydesktop-$pkgver
_builddir="$srcdir"/$pkgname-$pkgver _builddir="$srcdir"/$pkgname-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -18,6 +18,7 @@ _builddir="$srcdir"/rest-$pkgver ...@@ -18,6 +18,7 @@ _builddir="$srcdir"/rest-$pkgver
prepare() { prepare() {
local i local i
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -18,6 +18,7 @@ _builddir="$srcdir"/SDL_image-$pkgver ...@@ -18,6 +18,7 @@ _builddir="$srcdir"/SDL_image-$pkgver
prepare() { prepare() {
cd "$_builddir" cd "$_builddir"
update_config_sub || return 1
for i in $source; do for i in $source; do
case $i in case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
......
...@@ -17,6 +17,7 @@ _builddir="$srcdir"/SDL_mixer-$pkgver ...@@ -17,6 +17,7 @@ _builddir="$srcdir"/SDL_mixer-$pkgver