summaryrefslogtreecommitdiff
path: root/community/cross-arm-wince-cegcc-cegccdll
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/cross-arm-wince-cegcc-cegccdll
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/cross-arm-wince-cegcc-cegccdll')
-rw-r--r--community/cross-arm-wince-cegcc-cegccdll/PKGBUILD35
-rw-r--r--community/cross-arm-wince-cegcc-cegccdll/cegccdll.install8
2 files changed, 43 insertions, 0 deletions
diff --git a/community/cross-arm-wince-cegcc-cegccdll/PKGBUILD b/community/cross-arm-wince-cegcc-cegccdll/PKGBUILD
new file mode 100644
index 000000000..f2a0c0259
--- /dev/null
+++ b/community/cross-arm-wince-cegcc-cegccdll/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 20609 2010-07-09 08:51:07Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=cross-arm-wince-cegcc-cegccdll
+pkgver=0.59.1
+pkgrel=1
+_prefix=/opt/cegcc
+pkgdesc="CE GCC bundle - cross compilation tools for WinCE"
+arch=(i686 x86_64)
+license=(GPL)
+options=(!libtool)
+url="http://cegcc.sf.net"
+depends=('glibc')
+conflicts=(cross-arm-wince-cegcc-cegccdll-dummy)
+groups=('cegcc')
+install=cegccdll.install
+source=(http://arch.pp.ru/~sergej/dl/cegcc-$pkgver.tar.bz2)
+md5sums=('5e3c1098abdf8e5db2a3518ee3578b4b')
+
+build() {
+ cd $srcdir/cegcc/src/cegcc/cegccdll
+
+ export PATH=$_prefix/bin:$PATH
+ export TARGET=arm-wince-cegcc
+ unset CFLAGS
+ unset CXXFLAGS
+ unset LDFLAGS
+ unset MAKEFLAGS
+
+ make || return 1
+ mkdir -p $pkgdir/$_prefix/lib/gcc/arm-wince-cegcc/4.4.0/ && \
+ cp cegccdll/libcegcc.dll.a $pkgdir/$_prefix/lib/gcc/arm-wince-cegcc/4.4.0/ && \
+ make PREFIX=$pkgdir/$_prefix install || return 1
+ find $pkgdir/${_prefix} -type f -name \*.a -exec arm-wince-cegcc-ranlib {} \;
+}
diff --git a/community/cross-arm-wince-cegcc-cegccdll/cegccdll.install b/community/cross-arm-wince-cegcc-cegccdll/cegccdll.install
new file mode 100644
index 000000000..cb884b4d7
--- /dev/null
+++ b/community/cross-arm-wince-cegcc-cegccdll/cegccdll.install
@@ -0,0 +1,8 @@
+post_install() {
+ /opt/cegcc/bin/arm-wince-cegcc-ranlib /opt/cegcc/lib/gcc/arm-wince-cegcc/4.4.0/libcegcc.dll.a
+}
+
+post_upgrade() {
+ /opt/cegcc/bin/arm-wince-cegcc-ranlib /opt/cegcc/lib/gcc/arm-wince-cegcc/4.4.0/libcegcc.dll.a
+}
+