diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-13 19:46:13 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-13 19:46:13 -0300 |
commit | 0a15db3fa6f40e080010ab6c553b1ce9e32db4a9 (patch) | |
tree | 08f960dabf32a7ec171834696daa0334f4f16269 /libre | |
parent | f5e137fdf748b757bacfc50577e5d48a693d31c4 (diff) |
coreutils & pacman
Diffstat (limited to 'libre')
-rw-r--r-- | libre/pacman/PKGBUILD | 15 | ||||
-rw-r--r-- | libre/pacman/mips64el.patch | 26 |
2 files changed, 40 insertions, 1 deletions
diff --git a/libre/pacman/PKGBUILD b/libre/pacman/PKGBUILD index 2b1a423b2..8548c1e63 100644 --- a/libre/pacman/PKGBUILD +++ b/libre/pacman/PKGBUILD @@ -19,13 +19,18 @@ source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz pacman.conf pacman.conf.x86_64 pacman.conf.mips64el - makepkg.conf) + makepkg.conf + mips64el.patch) # keep an upgrade path for older installations PKGEXT='.pkg.tar.gz' build() { cd $srcdir/$pkgname-$pkgver + +# Add the mips64el arch to configure.ac + patch -Np0 -i $srcdir/mips64el.patch + ./configure --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --enable-doc make @@ -57,8 +62,10 @@ package() { mycarch="mips64el" mychost="mips64el-unknown-linux-gnu" myflags="-O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop " + myldflags="" ;; esac + install -m644 $srcdir/makepkg.conf $pkgdir/etc/ # set things correctly in the default conf file sed -i $pkgdir/etc/makepkg.conf \ -e "s|@CARCH[@]|$mycarch|g" \ @@ -74,3 +81,9 @@ package() { } # vim: set ts=2 sw=2 et: +md5sums=('c36c18ed4d8ec69c0ecb4f9684266901' + 'c7e6dbee04b7c492febea4366519b91d' + '8809642ed398d2b9b98c5974b8b5e348' + '3b2e740853e3d1463885675809d4c6ff' + 'be10d3d2e533515a0470237761415568' + '15d09319fae475f20ba11dd56e832c65') diff --git a/libre/pacman/mips64el.patch b/libre/pacman/mips64el.patch new file mode 100644 index 000000000..1dac6194f --- /dev/null +++ b/libre/pacman/mips64el.patch @@ -0,0 +1,26 @@ +--- configure.ac.orig 2011-06-10 14:50:19.241750094 -0300 ++++ configure.ac 2011-06-10 14:50:35.537678580 -0300 +@@ -271,6 +271,10 @@ case "${host}" in + CARCH="arm" + CARCHFLAGS="-march=armv4 " + ;; ++ mips64el-*) ++ CARCH="mips64el" ++ CARCHFLAGS="" ++ ;; + *) + AC_MSG_WARN([[Your architecture is unknown for makepkg.conf, consider adding it to configure.ac]]) + CARCH="unknown" +--- configure.orig 2011-06-10 14:57:12.971308117 -0300 ++++ configure 2011-06-10 14:56:49.963295618 -0300 +@@ -15673,6 +15673,10 @@ case "${host}" in + CARCH="arm" + CARCHFLAGS="-march=armv4 " + ;; ++ mips64el-*) ++ CARCH="mips64el" ++ CARCHFLAGS="" ++ ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your architecture is unknown for makepkg.conf, consider adding it to configure.ac" >&5 + $as_echo "$as_me: WARNING: Your architecture is unknown for makepkg.conf, consider adding it to configure.ac" >&2;} |