summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/kernel26-libre/Kbuild19
-rw-r--r--libre/kernel26-libre/Kbuild.platforms6
-rw-r--r--libre/kernel26-libre/PKGBUILD29
-rw-r--r--libre/libretools/PKGBUILD11
-rw-r--r--libre/pacman/PKGBUILD23
-rw-r--r--libre/pacman/makepkg.conf.mips64el114
-rw-r--r--libre/pacman/pacman.conf.mips64el86
-rw-r--r--libre/pacman/rePKGBUILD18
-rw-r--r--libre/thunderbird-libre/rePKGBUILD24
-rw-r--r--libre/unarchiver/PKGBUILD2
10 files changed, 287 insertions, 45 deletions
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 4cee4bf0b..d109f8b94 100644
--- a/libre/kernel26-libre/PKGBUILD
+++ b/libre/kernel26-libre/PKGBUILD
@@ -20,6 +20,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() {
@@ -28,7 +31,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
@@ -245,3 +262,13 @@ md5sums=('8feab9fb6c177052cb79248a223fbf66'
'af5937ac06a78907ceb499351bdff7ab'
'25584700a0a679542929c4bed31433b6'
'ba583747f515e51ec0f16d535e4be6e0')
+md5sums=('8feab9fb6c177052cb79248a223fbf66'
+ 'a480007d95472cc16825f5afe6e18e54'
+ 'abad63eab1f9485f6b1af76f5109f1e4'
+ '5d40a23419b48f5b49f1f10be0e733c3'
+ 'af5937ac06a78907ceb499351bdff7ab'
+ '25584700a0a679542929c4bed31433b6'
+ 'ba583747f515e51ec0f16d535e4be6e0'
+ '2967cecc3af9f954ccc822fd63dca6ff'
+ '8267264d9a8966e57fdacd1fa1fc65c4'
+ 'ba583747f515e51ec0f16d535e4be6e0')
diff --git a/libre/libretools/PKGBUILD b/libre/libretools/PKGBUILD
index 7f859fa3f..805d4c767 100644
--- a/libre/libretools/PKGBUILD
+++ b/libre/libretools/PKGBUILD
@@ -34,9 +34,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/
@@ -46,10 +46,13 @@ package() {
install -m755 ${_gitname}/createworkdir ${pkgdir}/usr/bin/
install -m755 ${_gitname}/diff-unfree ${pkgdir}/usr/bin
install -m755 ${_gitname}/fullpkg ${pkgdir}/usr/bin
+ install -m755 ${_gitname}/fullpkg-ng ${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/pacman/PKGBUILD b/libre/pacman/PKGBUILD
index dfdc56f09..bccfb3d82 100644
--- a/libre/pacman/PKGBUILD
+++ b/libre/pacman/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=pacman
pkgver=3.5.2
pkgrel=1.1
pkgdesc="A library-based package manager with dependency support"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('base')
@@ -18,11 +18,16 @@ options=(!libtool)
source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
pacman.conf
pacman.conf.x86_64
- makepkg.conf)
+ pacman.conf.mips64el
+ makepkg.conf
+ makepkg.conf.mips64el)
+
md5sums=('b4f1fdbc17100923071ebe8fe9377be5'
'c7e6dbee04b7c492febea4366519b91d'
'8809642ed398d2b9b98c5974b8b5e348'
- 'a8684989d3dfad5a6e1bcf95af3e571b')
+ '3b2e740853e3d1463885675809d4c6ff'
+ 'a8684989d3dfad5a6e1bcf95af3e571b'
+ 'c1ddddc5cbd1273eafcf1d858c100de0')
# keep an upgrade path for older installations
PKGEXT='.pkg.tar.gz'
@@ -53,8 +58,18 @@ package() {
mychost="x86_64-unknown-linux-gnu"
myflags="-march=x86-64 "
;;
+ mips64el)
+ 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 "
+ ;;
esac
- install -m644 $srcdir/makepkg.conf $pkgdir/etc/
+ if [ $CARCH = mips64el ]; then
+ install -m644 $srcdir/makepkg.conf.mips64el $pkgdir/etc/makepkg.conf
+ else
+ install -m644 $srcdir/makepkg.conf $pkgdir/etc/
+ fi
# set things correctly in the default conf file
sed -i $pkgdir/etc/makepkg.conf \
-e "s|@CARCH[@]|$mycarch|g" \
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/pacman.conf.mips64el b/libre/pacman/pacman.conf.mips64el
new file mode 100644
index 000000000..caee508fd
--- /dev/null
+++ b/libre/pacman/pacman.conf.mips64el
@@ -0,0 +1,86 @@
+#
+# /etc/pacman.conf
+#
+# See the pacman.conf(5) manpage for option and repository directives
+
+#
+# GENERAL OPTIONS
+#
+[options]
+# The following paths are commented out with their default values listed.
+# If you wish to use different paths, uncomment and update the paths.
+#RootDir = /
+#DBPath = /var/lib/pacman/
+#CacheDir = /var/cache/pacman/pkg/
+#LogFile = /var/log/pacman.log
+HoldPkg = pacman glibc
+# If upgrades are available for these packages they will be asked for first
+SyncFirst = pacman
+#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
+#XferCommand = /usr/bin/curl -C - -f %u > %o
+#CleanMethod = KeepInstalled
+Architecture = mips64el
+
+# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
+#IgnorePkg =
+#IgnoreGroup =
+
+#NoUpgrade =
+#NoExtract =
+
+# Misc options (all disabled by default)
+#UseSyslog
+#ShowSize
+#UseDelta
+#TotalDownload
+#CheckSpace
+
+#
+# REPOSITORIES
+# - can be defined here or included from another file
+# - pacman will search repositories in the order defined here
+# - local/custom mirrors can be added here or in separate files
+# - repositories listed first will take precedence when packages
+# have identical names, regardless of version number
+# - URLs will have $repo replaced by the name of the current repo
+# - URLs will have $arch replaced by the name of the architecture
+#
+# Repository entries are of the format:
+# [repo-name]
+# Server = ServerName
+# Include = IncludePath
+#
+# The header [repo-name] is crucial - it must be present and
+# uncommented to enable the repo.
+#
+
+# The testing repositories are disabled by default. To enable, uncomment the
+# repo name header and Include lines. You can add preferred servers immediately
+# after the header, and they will be used before the default mirrors.
+
+#[libre-testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[libre]
+Include = /etc/pacman.d/mirrorlist
+
+#[testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[core]
+Include = /etc/pacman.d/mirrorlist
+
+[extra]
+Include = /etc/pacman.d/mirrorlist
+
+#[community-testing]
+#Include = /etc/pacman.d/mirrorlist
+
+[community]
+Include = /etc/pacman.d/mirrorlist
+
+# An example of a custom package repository. See the pacman manpage for
+# tips on creating your own repositories.
+#[custom]
+#Server = file:///home/custompkgs
+
diff --git a/libre/pacman/rePKGBUILD b/libre/pacman/rePKGBUILD
index 251d44d72..d7378a9f9 100644
--- a/libre/pacman/rePKGBUILD
+++ b/libre/pacman/rePKGBUILD
@@ -1,21 +1,7 @@
# $Id: PKGBUILD 120035 2011-04-18 16:49:22Z dan $
# Maintainer: Dan McGee <dan@archlinux.org>
-
-pkgname=pacman
-pkgver=3.5.2
-pkgrel=1.2
-_pkgrel=1
-pkgdesc="A library-based package manager with dependency support"
-arch=('i686' 'x86_64')
-url="http://www.archlinux.org/pacman/"
-license=('GPL')
-groups=('base')
-depends=('bash' 'libarchive>=2.8.4' 'libfetch>=2.28' 'pacman-mirrorlist-libre')
-optdepends=('fakeroot: for makepkg usage as normal user'
- 'curl: for rankmirrors usage')
-backup=(etc/pacman.conf etc/makepkg.conf)
-install=pacman.install
-options=(!libtool !strip)
+source PKGBUILD
+unset source
source=(http://repo.parabolagnulinux.org/core/os/$CARCH/$pkgname-$pkgver-$_pkgrel-$CARCH.pkg.tar.gz
pacman.conf
pacman.conf.x86_64
diff --git a/libre/thunderbird-libre/rePKGBUILD b/libre/thunderbird-libre/rePKGBUILD
index ef2de693e..e3a4d5369 100644
--- a/libre/thunderbird-libre/rePKGBUILD
+++ b/libre/thunderbird-libre/rePKGBUILD
@@ -1,23 +1,9 @@
# Maintainer: Joshua Haase <hahj87@gmail.com>
-_pkgbase=thunderbird
-pkgname=thunderbird-libre
-_pkgver=3.1
-pkgver=3.1.9
-_pkgrel=2
-pkgrel=$_pkgrel.1
-pkgdesc="Standalone Mail/News reader, with GNUZilla addons"
-arch=('i686' 'x86_64')
-license=('MPL' 'GPL')
-url="http://www.mozilla.org/projects/thunderbird"
-depends=('gtk2' 'gcc-libs' 'mozilla-common' 'nss' 'libxt' 'shared-mime-info' 'alsa-lib' 'dbus-glib' 'hunspell' 'sqlite3>=3.7.4' 'desktop-file-utils')
-makedepends=()
-optdepends=('libcanberra: for sound support')
-replaces=('thunderbird')
-conflicts=('thunderbird')
-provides=("thunderbird=$pkgver")
-install=thunderbird.install
-source=(http://mirrors.kernel.org/archlinux/extra/os/$CARCH/$_pkgbase-$pkgver-$_pkgrel-$CARCH.pkg.tar.xz
- gnuzilla-addons.patch)
+source PKGBUILD
+unset md5sums source build package
+source=(PKGBUILD
+ http://mirrors.kernel.org/archlinux/extra/os/$CARCH/$_pkgbase-$pkgver-$_pkgrel-$CARCH.pkg.tar.xz
+ gnuzilla-addons.patch)
build() {
cd "${srcdir}/"
diff --git a/libre/unarchiver/PKGBUILD b/libre/unarchiver/PKGBUILD
index 4a5cb737e..6faa61c68 100644
--- a/libre/unarchiver/PKGBUILD
+++ b/libre/unarchiver/PKGBUILD
@@ -3,7 +3,7 @@ pkgname=unarchiver
pkgver=2.7.1
pkgrel=1
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')