summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/initscripts/PKGBUILD7
-rw-r--r--libre/kernel26-libre/Kbuild19
-rw-r--r--libre/kernel26-libre/Kbuild.platforms6
-rw-r--r--libre/kernel26-libre/PKGBUILD32
-rw-r--r--libre/libretools/PKGBUILD13
-rw-r--r--libre/libretools/libretools.install5
-rw-r--r--libre/p7zip-libre/PKGBUILD42
-rw-r--r--libre/pacman/PKGBUILD19
-rw-r--r--libre/pacman/makepkg.conf.mips64el114
-rw-r--r--libre/pacman/mips64el.patch26
-rw-r--r--libre/unarchiver/PKGBUILD2
11 files changed, 247 insertions, 38 deletions
diff --git a/libre/initscripts/PKGBUILD b/libre/initscripts/PKGBUILD
index a6a3abecb..999350dc8 100644
--- a/libre/initscripts/PKGBUILD
+++ b/libre/initscripts/PKGBUILD
@@ -8,7 +8,7 @@ pkgname=initscripts
pkgver=2011.06.4
pkgrel=2
pkgdesc="System initialization/bootup scripts (Parabola branding)"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://parabolagnulinux.org"
license=('GPL2')
groups=('base')
@@ -22,11 +22,10 @@ optdepends=('bridge-utils: Network bridging support'
install=initscripts.install
source=("https://projects.parabolagnulinux.org/initscripts.git/snapshot/initscripts-${pkgver}.tar.bz2"
'wireless.conf.d')
-md5sums=('df73e4c4043d4eaf6502ca6738c549aa'
- '027576534885b8d5dded9be546057b12')
-
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
install -D -m644 ${srcdir}/wireless.conf.d ${pkgdir}/etc/conf.d/wireless
}
+md5sums=('cbd4320b6b1790f8c1fd80917650a566'
+ '027576534885b8d5dded9be546057b12')
diff --git a/libre/kernel26-libre/Kbuild b/libre/kernel26-libre/Kbuild
new file mode 100644
index 000000000..8a9d7dceb
--- /dev/null
+++ b/libre/kernel26-libre/Kbuild
@@ -0,0 +1,19 @@
+# Fail on warnings - also for files referenced in subdirs
+# -Werror can be disabled for specific files using:
+# CFLAGS_<file.o> := -Wno-error
+subdir-ccflags-y := -Wno-error
+
+# platform specific definitions
+include arch/mips/Kbuild.platforms
+obj-y := $(platform-y)
+
+# make clean traverses $(obj-) without having included .config, so
+# everything ends up here
+obj- := $(platform-)
+
+# mips object files
+# The object files are linked as core-y files would be linked
+
+obj-y += kernel/
+obj-y += mm/
+obj-y += math-emu/
diff --git a/libre/kernel26-libre/Kbuild.platforms b/libre/kernel26-libre/Kbuild.platforms
new file mode 100644
index 000000000..90a226888
--- /dev/null
+++ b/libre/kernel26-libre/Kbuild.platforms
@@ -0,0 +1,6 @@
+# All platforms listed in alphabetic order
+
+platforms += loongson
+
+# include the platform specific files
+include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))
diff --git a/libre/kernel26-libre/PKGBUILD b/libre/kernel26-libre/PKGBUILD
index 736bb1c9b..0c57c0bfd 100644
--- a/libre/kernel26-libre/PKGBUILD
+++ b/libre/kernel26-libre/PKGBUILD
@@ -21,6 +21,9 @@ source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/${pkgver}-libre/li
config.i686 config.x86_64
# standard config files for mkinitcpio ramdisk
kernel26.preset
+ kernel26.install
+ Kbuild
+ Kbuild.platforms
kernel26.install)
build() {
@@ -29,7 +32,21 @@ build() {
# See http://projects.parabolagnulinux.org/linux-libre-2.6-LIBRE.git/
patch -Np1 -i ${srcdir}/${_patchname}
- cat $srcdir/config.$CARCH > ./.config # simpler
+ if [ "$CARCH" == "mips64el" ]; then
+ sed -i "s|^EXTRAVERSION.*|EXTRAVERSION =-libre|" Makefile
+ msg2 "Adding loongson-community patches"
+ patch -Np1 -i ${srcdir}/$pkgver-*-loongson-community.patch
+ patch -Np0 -i ${srcdir}/lxo-config.patch
+
+# ensure N32
+ sed -i "s|CONFIG_MIPS32_O32=.*|# CONFIG_MIPS32_O32 is not set|g" ./.config
+ sed -i "s|CONFIG_MIPS32_N32=.*|CONFIG_MIPS32_N32=y|g" ./.config
+
+# build with -Wno-error
+ cp --remove-destination ${srcdir}/Kbuild arch/mips/
+ else
+ cat $srcdir/config.$CARCH > ./.config # simpler
+ fi
for this_doesnt_build in CONFIG_WLAGS49_H2 CONFIG_WLAGS49_H25 CONFIG_VT6656; do
sed -i "s|^${this_doesnt_build}=.*|# ${this_doesnt_build} is not set|g" ./.config
@@ -241,8 +258,21 @@ find $pkgdir -type d -exec chmod 755 {} \;
rm -f $pkgdir/usr/src/linux-$_kernver/Documentation/DocBook/Makefile
}
md5sums=('923210b0c4190733bf314e48f588c112'
+<<<<<<< HEAD
+ 'abad63eab1f9485f6b1af76f5109f1e4'
+ '5d40a23419b48f5b49f1f10be0e733c3'
+ 'af5937ac06a78907ceb499351bdff7ab'
+ '25584700a0a679542929c4bed31433b6'
+ 'ba583747f515e51ec0f16d535e4be6e0')
+md5sums=('8feab9fb6c177052cb79248a223fbf66'
+ 'a480007d95472cc16825f5afe6e18e54'
+=======
+>>>>>>> 4aea7f1d98a7fba9a021ade4c9d475b180687fe8
'abad63eab1f9485f6b1af76f5109f1e4'
'5d40a23419b48f5b49f1f10be0e733c3'
'af5937ac06a78907ceb499351bdff7ab'
'25584700a0a679542929c4bed31433b6'
+ 'ba583747f515e51ec0f16d535e4be6e0'
+ '2967cecc3af9f954ccc822fd63dca6ff'
+ '8267264d9a8966e57fdacd1fa1fc65c4'
'ba583747f515e51ec0f16d535e4be6e0')
diff --git a/libre/libretools/PKGBUILD b/libre/libretools/PKGBUILD
index 7f859fa3f..287c61523 100644
--- a/libre/libretools/PKGBUILD
+++ b/libre/libretools/PKGBUILD
@@ -8,7 +8,8 @@ pkgdesc="Scripts for easing Parabola's tasks"
arch=('any')
url="http://parabolagnulinux.org"
license=('GPL3+')
-depends=(devtools git wget)
+depends=(openssh rsync git wget)
+optdepends=(devtools)
makedepends=(git)
backup=(etc/libretools.conf)
install=libretools.install
@@ -34,9 +35,9 @@ build() {
}
package() {
- install -d ${pkgdir}/usr/bin
- install -d ${pkgdir}/usr/sbin
install -d ${pkgdir}/etc
+ install -d ${pkgdir}/usr/bin
+ install -d ${pkgdir}/usr/share/pacman
install -m644 ${_gitname}/libretools.conf ${pkgdir}/etc/
@@ -47,9 +48,11 @@ package() {
install -m755 ${_gitname}/diff-unfree ${pkgdir}/usr/bin
install -m755 ${_gitname}/fullpkg ${pkgdir}/usr/bin
install -m755 ${_gitname}/is_built ${pkgdir}/usr/bin
+ install -m755 ${_gitname}/lb ${pkgdir}/usr/bin
install -m755 ${_gitname}/librechroot ${pkgdir}/usr/bin/
install -m755 ${_gitname}/librecommit ${pkgdir}/usr/bin/
install -m755 ${_gitname}/librediff ${pkgdir}/usr/bin/
+ install -m755 ${_gitname}/libremakepkg ${pkgdir}/usr/bin/
install -m755 ${_gitname}/libremessages ${pkgdir}/usr/bin/
install -m755 ${_gitname}/librerelease ${pkgdir}/usr/bin/
install -m755 ${_gitname}/librerepkg ${pkgdir}/usr/bin
@@ -59,6 +62,6 @@ package() {
install -m755 ${_gitname}/toru ${pkgdir}/usr/bin
install -m755 ${_gitname}/updateabslibre ${pkgdir}/usr/bin
- install -m755 ${_gitname}/libremakepkg ${pkgdir}/usr/sbin/
-
+ install -m755 ${_gitname}/rePKGBUILD.proto ${pkgdir}/usr/share/pacman
+
} \ No newline at end of file
diff --git a/libre/libretools/libretools.install b/libre/libretools/libretools.install
index 8eea37689..f8f447e2f 100644
--- a/libre/libretools/libretools.install
+++ b/libre/libretools/libretools.install
@@ -1,4 +1,3 @@
-
# arg 1: the new package version
post_install() {
cat <<EOF
@@ -13,7 +12,9 @@ post_upgrade() {
cat <<EOF
Check your /etc/libretools.conf
-Make sure LIBREDESTDIR finish with "repo" instead of "free"
+Your REPOS array if using fullpkg should be:
+'core' 'extra' 'community' 'libre'
+
EOF
}
diff --git a/libre/p7zip-libre/PKGBUILD b/libre/p7zip-libre/PKGBUILD
index cbee2b234..28a900957 100644
--- a/libre/p7zip-libre/PKGBUILD
+++ b/libre/p7zip-libre/PKGBUILD
@@ -10,7 +10,7 @@ _pkgname=${pkgname%-libre}
pkgver=9.20
pkgrel=1
pkgdesc='Command-line version of the 7zip compressed file archiver without Rar'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url='http://p7zip.sourceforge.net/'
makedepends=('yasm' 'nasm')
@@ -22,30 +22,34 @@ replaces=('p7zip')
sha1sums=('c976df4543ea946a65bc3f5e3d4e9baa417e5f12'
'3a3333d4703955664fdd4023c624ab4828af0ab1')
build() {
- cd "${srcdir}/${_pkgname}_${pkgver}"
+ cd "${srcdir}/${_pkgname}_${pkgver}"
- msg "Removing unRar"
- sed -e '/Rar/d' -i makefile*
- rm -rf CPP/7zip/Compress/Rar
- patch -p1 -i $startdir/src/9.04-makefile.patch
+ msg "Removing unRar"
+ sed -e '/Rar/d' -i makefile*
+ rm -rf CPP/7zip/Compress/Rar
+ patch -p1 -i $startdir/src/9.04-makefile.patch
- [[ $CARCH = x86_64 ]] \
- && cp makefile.linux_amd64_asm makefile.machine \
- || cp makefile.linux_x86_asm_gcc_4.X makefile.machine
- sed -i "s|usr/local|usr|g" makefile
+ if [[ $CARCH = x86_64 ]] ; then
+ cp makefile.linux_amd64_asm makefile.machine
+ elif [ $CARCH = mips64el ]; then
+ cp makefile.linux_any_cpu_gcc_4.X makefile.machine
+ else
+ cp makefile.linux_x86_asm_gcc_4.X makefile.machine
+ fi
+ sed -i "s|usr/local|usr|g" makefile
- make all3 OPTFLAGS="${CXXFLAGS}"
+ make all3 OPTFLAGS="${CXXFLAGS}"
}
package() {
- cd "${srcdir}/${_pkgname}_${pkgver}"
+ cd "${srcdir}/${_pkgname}_${pkgver}"
- make install \
- DEST_HOME="${pkgdir}/usr" \
- DEST_MAN="${pkgdir}/usr/share/man" \
- DEST_SHARE_DOC="http://www.bugaco.com/7zip"
+ make install \
+ DEST_HOME="${pkgdir}/usr" \
+ DEST_MAN="${pkgdir}/usr/share/man" \
+ DEST_SHARE_DOC="http://www.bugaco.com/7zip"
- install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/
- sed "s|${pkgdir}/usr|/usr|g" -i "${pkgdir}"/usr/bin/7z{,a,r}
- install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z
+ install -m555 bin/7z.so ${pkgdir}/usr/lib/p7zip/
+ sed "s|${pkgdir}/usr|/usr|g" -i "${pkgdir}"/usr/bin/7z{,a,r}
+ install -Dm755 contrib/VirtualFileSystemForMidnightCommander/u7z "${pkgdir}"/usr/lib/mc/extfs.d/u7z
}
diff --git a/libre/pacman/PKGBUILD b/libre/pacman/PKGBUILD
index 71c50694b..6401d86ed 100644
--- a/libre/pacman/PKGBUILD
+++ b/libre/pacman/PKGBUILD
@@ -19,18 +19,19 @@ source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
pacman.conf
pacman.conf.x86_64
pacman.conf.mips64el
+ makepkg.conf
+ mips64el.patch
makepkg.conf)
-md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
- 'c7e6dbee04b7c492febea4366519b91d'
- '8809642ed398d2b9b98c5974b8b5e348'
- '3b2e740853e3d1463885675809d4c6ff'
- 'be10d3d2e533515a0470237761415568')
# 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
@@ -61,7 +62,7 @@ package() {
install -m644 $srcdir/pacman.conf.mips64el $pkgdir/etc/pacman.conf
mycarch="mips64el"
mychost="mips64el-unknown-linux-gnu"
- myflags="-O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop"
+ myflags="-O2 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop "
myldflags=""
;;
esac
@@ -81,3 +82,9 @@ package() {
}
# vim: set ts=2 sw=2 et:
+md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
+ 'c7e6dbee04b7c492febea4366519b91d'
+ '8809642ed398d2b9b98c5974b8b5e348'
+ '3b2e740853e3d1463885675809d4c6ff'
+ 'be10d3d2e533515a0470237761415568'
+ '15d09319fae475f20ba11dd56e832c65')
diff --git a/libre/pacman/makepkg.conf.mips64el b/libre/pacman/makepkg.conf.mips64el
new file mode 100644
index 000000000..ae090a1fa
--- /dev/null
+++ b/libre/pacman/makepkg.conf.mips64el
@@ -0,0 +1,114 @@
+#
+# /etc/makepkg.conf
+#
+
+#########################################################################
+# SOURCE ACQUISITION
+#########################################################################
+#
+#-- The download utilities that makepkg should use to acquire sources
+# Format: 'protocol::agent'
+DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
+ 'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
+ 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
+ 'rsync::/usr/bin/rsync -z %u %o'
+ 'scp::/usr/bin/scp -C %u %o')
+
+# Other common tools:
+# /usr/bin/snarf
+# /usr/bin/lftpget -c
+# /usr/bin/curl
+
+#########################################################################
+# ARCHITECTURE, COMPILE FLAGS
+#########################################################################
+#
+CARCH="@CARCH@"
+CHOST="@CHOST@"
+
+#-- Exclusive: will only run on @CARCH@
+# -march (or -mcpu) builds exclusively for an architecture
+# -mtune optimizes for an architecture, but builds for whole processor family
+CFLAGS="@CARCHFLAGS@"
+CXXFLAGS="@CARCHFLAGS@"
+#LDFLAGS="-Wl,--hash-style=gnu -Wl,--as-needed"
+#-- Make Flags: change this for DistCC/SMP systems
+#MAKEFLAGS="-j2"
+
+#########################################################################
+# BUILD ENVIRONMENT
+#########################################################################
+#
+# Defaults: BUILDENV=(fakeroot !distcc color !ccache check)
+# A negated environment option will do the opposite of the comments below.
+#
+#-- fakeroot: Allow building packages as a non-root user
+#-- distcc: Use the Distributed C/C++/ObjC compiler
+#-- color: Colorize output messages
+#-- ccache: Use ccache to cache compilation
+#-- check: Run the check() function if present in the PKGBUILD
+#
+BUILDENV=(fakeroot !distcc color !ccache check)
+#
+#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
+#-- specify a space-delimited list of hosts running in the DistCC cluster.
+#DISTCC_HOSTS=""
+
+#########################################################################
+# GLOBAL PACKAGE OPTIONS
+# These are default values for the options=() settings
+#########################################################################
+#
+# Default: OPTIONS=(strip docs libtool emptydirs zipman purge)
+# A negated option will do the opposite of the comments below.
+#
+#-- strip: Strip symbols from binaries/libraries
+#-- docs: Save doc directories specified by DOC_DIRS
+#-- libtool: Leave libtool (.la) files in packages
+#-- emptydirs: Leave empty directories in packages
+#-- zipman: Compress manual (man and info) pages in MAN_DIRS with gzip
+#-- purge: Remove files specified by PURGE_TARGETS
+#
+OPTIONS=(strip docs libtool emptydirs zipman purge)
+
+#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
+INTEGRITY_CHECK=(md5)
+#-- Options to be used when stripping binaries. See `man strip' for details.
+STRIP_BINARIES="--strip-all"
+#-- Options to be used when stripping shared libraries. See `man strip' for details.
+STRIP_SHARED="--strip-unneeded"
+#-- Options to be used when stripping static libraries. See `man strip' for details.
+STRIP_STATIC="--strip-debug"
+#-- Manual (man and info) directories to compress (if zipman is specified)
+MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
+#-- Doc directories to remove (if !docs is specified)
+DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
+#-- Files to be removed from all packages (if purge is specified)
+PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
+
+#########################################################################
+# PACKAGE OUTPUT
+#########################################################################
+#
+# Default: put built package and cached source in build directory
+#
+#-- Destination: specify a fixed directory where all packages will be placed
+#PKGDEST=/home/packages
+#-- Source cache: specify a fixed directory where source files will be cached
+#SRCDEST=/home/sources
+#-- Source packages: specify a fixed directory where all src packages will be placed
+#SRCPKGDEST=/home/srcpackages
+#-- Packager: name/email of the person or organization building packages
+#PACKAGER="John Doe <john@doe.com>"
+
+#########################################################################
+# EXTENSION DEFAULTS
+#########################################################################
+#
+# WARNING: Do NOT modify these variables unless you know what you are
+# doing.
+#
+PKGEXT='.pkg.tar.xz'
+SRCEXT='.src.tar.gz'
+
+# vim: set ft=sh ts=2 sw=2 et:
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;}
diff --git a/libre/unarchiver/PKGBUILD b/libre/unarchiver/PKGBUILD
index b319676c4..89d7a7b09 100644
--- a/libre/unarchiver/PKGBUILD
+++ b/libre/unarchiver/PKGBUILD
@@ -3,7 +3,7 @@ pkgname=unarchiver
pkgver=2.7.1
pkgrel=2
pkgdesc="An Objective-C application for uncompressing archive files"
-arch=('x86_64' 'i686')
+arch=('x86_64' 'i686' 'mips64el')
url="http://wakaba.c3.cx/s/apps/unarchiver.html"
license=('LGPL2.1')
depends=('gnustep-base' 'openssl' 'bzip2' 'icu' 'gcc-libs' 'zlib')