Imported first changed PKGBUILDs

This commit is contained in:
Mike Staszel 2009-09-26 09:54:19 -05:00
parent 948825c744
commit 6721389c38
7 changed files with 56 additions and 46 deletions

View file

@ -1,4 +1,6 @@
# Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=acl
pkgver=2.2.47
pkgrel=1
@ -23,17 +25,17 @@ build() {
patch -Np0 -i $srcdir/acl-rpath.patch
autoconf
./configure --prefix=/usr
./configure --prefix=/opt
make || return 1
make prefix=$pkgdir/usr/ install install-lib install-dev
make prefix=$pkgdir/opt/ install install-lib install-dev
# tidy up
cd $pkgdir
mkdir -v lib
mv -v usr/lib/libacl.so* lib/
ln -sv ../../lib/libacl.so.1 usr/lib/libacl.so
# mkdir -v lib
# mv -v usr/lib/libacl.so* lib/
ln -sv opt/lib/libacl.so.1 opt/lib/libacl.so
mv -v usr/libexec/libacl.{a,la} usr/lib/
rm -rf $pkgdir/usr/libexec
mv -v opt/libexec/libacl.{a,la} opt/lib/
rm -rf $pkgdir/opt/libexec
}

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=attr
pkgver=2.4.43
pkgrel=2
@ -7,7 +9,7 @@ arch=(arm)
url="http://oss.sgi.com/projects/xfs/"
license=('LGPL')
groups=('base')
depends=('glibc')
depends=()
makedepends=('gettext')
replaces=('xfsattr')
provides=('xfsattr')
@ -19,18 +21,18 @@ md5sums=('91583a14bcbd637adaa9b07ea49c5d4b')
build() {
cd $startdir/src/attr-$pkgver
autoconf
./configure --prefix=/usr
./configure --prefix=/opt
sed -i -e 's/man2//g' man/Makefile
make || return 1
make prefix=${startdir}/pkg/usr install install-lib install-dev
make prefix=${startdir}/pkg/opt install install-lib install-dev
# tidy up
cd "${startdir}/pkg"
mkdir -v lib
mv -v usr/lib/libattr.so* lib/
ln -sv ../../lib/libattr.so.1 usr/lib/libattr.so
# mkdir -v lib
# mv -v usr/lib/libattr.so* lib/
ln -sv opt/lib/libattr.so.1 opt/lib/libattr.so
mv -v usr/libexec/libattr.{a,la} usr/lib/
rm -rvf usr/libexec
mv -v opt/libexec/libattr.{a,la} opt/lib/
rm -rvf opt/libexec
}

View file

@ -1,4 +1,7 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
# Successfully builds natively
pkgname=autoconf
pkgver=2.63
pkgrel=2
@ -7,14 +10,14 @@ arch=('arm')
license=('GPL2' 'GPL3')
url="http://www.gnu.org/software/autoconf"
groups=('base-devel')
depends=('awk' 'm4' 'diffutils' 'bash')
depends=('awk' 'm4' 'diffutils')
source=(ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz)
md5sums=('43d76649fb86cd21d64f68c48d5abdcf')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=/usr
./configure --prefix=/opt
make || return 1
make DESTDIR=${pkgdir} install || return 1
rm -rf "${pkgdir}/usr/share/info"
rm -rf "${pkgdir}/opt/share/info"
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
pkgname=automake
pkgver=1.11
@ -8,16 +9,14 @@ arch=(arm)
license=('GPL')
url="http://www.gnu.org/software/automake"
groups=('base-devel')
depends=('perl' 'bash')
depends=('perl')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('fab0bd2c3990a6679adaf9eeac0c6d2a')
build() {
cd "$srcdir/automake-$pkgver"
./configure --prefix=/usr
./configure --prefix=/opt
make || return 1
make DESTDIR=$pkgdir install || return 1
}
# vim: set ft=sh ts=2 sw=2 et:

View file

@ -1,5 +1,6 @@
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# arm Maintainer: Philipp Scholl <pscholl@bawue.de>
# Modified by OpenPogo
pkgname=bash
_patchlevel=028
@ -10,8 +11,8 @@ arch=(arm)
license=('GPL')
url="http://www.gnu.org/software/bash/bash.html"
groups=('base')
backup=(etc/profile.bash etc/skel/.bashrc etc/skel/.bash_profile)
depends=('readline>=5.2' 'glibc')
backup=(opt/etc/profile.bash opt/etc/skel/.bashrc opt/etc/skel/.bash_profile)
depends=('readline>=5.2')
makedepends=(gzip)
provides=('sh')
source=(http://ftp.gnu.org/gnu/bash/bash-4.0.tar.gz
@ -27,23 +28,23 @@ build() {
patch -Np0 -i ${p} || return 1
done
./configure --prefix=/usr --with-curses --enable-readline \
./configure --prefix=/opt --with-curses --enable-readline \
--without-bash-malloc --with-installed-readline \
--bindir=/bin --mandir=/usr/share/man --infodir=/usr/share/info
--bindir=/opt/bin --mandir=/opt/share/man --infodir=/opt/share/info
make || return 1
make DESTDIR=${startdir}/pkg install
install -D -m644 ${startdir}/src/profile.bash ${startdir}/pkg/etc/profile.bash
install -D -m644 ${startdir}/src/profile.bash ${startdir}/pkg/opt/etc/profile.bash
# for now, bash is our default /bin/sh
cd ${startdir}/pkg/bin
cd ${startdir}/pkg/opt/bin
ln -s bash sh
mkdir -p $startdir/pkg/etc/skel/
install -D -m644 $startdir/src/bashrc $startdir/pkg/etc/skel/.bashrc
echo ". \$HOME/.bashrc" >$startdir/pkg/etc/skel/.bash_profile
mkdir -p $startdir/pkg/opt/etc/skel/
install -D -m644 $startdir/src/bashrc $startdir/pkg/opt/etc/skel/.bashrc
echo ". \$HOME/.bashrc" >$startdir/pkg/opt/etc/skel/.bash_profile
rm -rf ${pkgdir}/usr/share/{info,man}
rm -rf ${pkgdir}/opt/share/{info,man}
}
md5sums=('a90a1b5a6db4838483f05438e05e8eb9'
'c2fae355facefcac8a732cce877da194'

View file

@ -1,4 +1,6 @@
# Maintainer: Krzysztof "hiciu" Warzecha <kwarzecha7@gmail.com>
# Modified by OpenPogo
pkgname=bc
pkgver=1.06
pkgrel=1
@ -10,15 +12,16 @@ replaces=(bc-readline)
conflicts=(bc-readline)
source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
build-fix.patch)
md5sums=('d44b5dddebd8a7a7309aea6c36fda117' 'fc7ecbd9e55ef04c6d3a495692626116')
md5sums=('d44b5dddebd8a7a7309aea6c36fda117'
'fc7ecbd9e55ef04c6d3a495692626116')
build() {
CFLAGS="$CFLAGS -O3"
cd ${startdir}/src/${pkgname}-${pkgver}
patch -Np1 -i ${startdir}/src/build-fix.patch || return 1
./configure --prefix=/usr --mandir=/usr/share/man \
--infodir=/usr/share/info --with-readline
./configure --prefix=/opt --mandir=/opt/share/man \
--infodir=/opt/share/info --with-readline
make LEX="flex -I" || return 1
make DESTDIR=${startdir}/pkg install
rm ${pkgdir}/usr/share/info/dir
rm ${pkgdir}/opt/share/info/dir
}

View file

@ -1,4 +1,5 @@
# Maintainer: Alexander Foremny <alexanderforemny@gmail.com>
# Modified by OpenPogo
# toolchain build order: kernel-headers->glibc->binutils->gcc-libs->gcc->binutils->glibc
@ -12,7 +13,7 @@ url="http://www.gnu.org/software/binutils/"
license=('GPL')
groups=('base-devel')
options=('!libtool' '!distcc' '!ccache')
depends=('glibc>=2.9' 'texinfo>=4.13a-3')
depends=('texinfo>=4.13a-3')
source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
md5sums=('8fd8a7082814124917289eba9f2b46f1')
@ -21,26 +22,25 @@ build() {
cd $srcdir/binutils-build
CC="gcc -L`pwd`/bfd/.libs/"
../configure --prefix=/usr \
--mandir=/usr/share/man --infodir=/usr/share/info \
../configure --prefix=/opt \
--mandir=/opt/share/man --infodir=/opt/share/info \
--enable-shared || return 1
# fix man files install path
sed -i -e "s:mandir \= \/usr\/share:mandir \= ${pkgdir}\/usr\/share:" ${srcdir}/binutils-build/Makefile || return 1
sed -i -e "s:mandir \= \/opt\/share:mandir \= ${pkgdir}\/opt\/share:" ${srcdir}/binutils-build/Makefile || return 1
# fix info files install path
sed -i -e "s:infodir \= \/usr\/share:infodir \= ${pkgdir}\/usr\/share:" ${srcdir}/binutils-build/Makefile || return 1
sed -i -e "s:infodir \= \/opt\/share:infodir \= ${pkgdir}\/opt\/share:" ${srcdir}/binutils-build/Makefile || return 1
# This checks the host environment and makes sure all the necessary tools are available to compile Binutils.
make configure-host || return 1
make tooldir=${startdir}/pkg/usr || return 1
make prefix=${startdir}/pkg/usr tooldir=${startdir}/pkg/usr install
make tooldir=${startdir}/pkg/opt || return 1
make prefix=${startdir}/pkg/opt tooldir=${startdir}/pkg/opt install
install -m 644 ../include/libiberty.h ${startdir}/pkg/usr/include
install -m 644 ../include/libiberty.h ${startdir}/pkg/opt/include
# Remove these symlinks, with binutils prereleases they are not ABI stable.
# Programs should compile static to the .a file.
rm -f ${startdir}/pkg/usr/lib/lib{bfd,opcodes}.so
rm -f ${startdir}/pkg/opt/lib/lib{bfd,opcodes}.so
}