updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / skyeye-git / PKGBUILD
blobf634eae43dd4f5efe75703c343acaee4cd82a7fa
1 # Maintainer:  Johannes Schlatow <johannes.schlatow@googlemail.com>
3 pkgname=skyeye-git
4 pkgver=20110123
5 pkgrel=4
6 pkgdesc="An emulator which supports various ARM platforms"
7 arch=('i686' 'x86_64')
8 url="http://www.skyeye.org/"
9 license=('GPL')
10 depends=('libx11' 'libxpm')
11 optdepends=('cross-arm-elf-gcc-base' 'gdb')
12 makedepends=('git')
13 source=("0001-Add-some-macro-judgment-for-ubuntu-10.10.patch" "fix-makefile.patch")
14 sha256sums=('e134cdc963941bdaf5132e61f7dcd77053bb0862ab664267b3cabfe289c150cc' '2d509b64fe6f16db290bb190f5d9ffdf0ec611df940a37363f3f774d3d51132c')
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server..."
20   if [ -d "$srcdir/skyeye" ]; then
21           cd skyeye && git pull origin
22           msg "The local files are updated."
23   else
24           git clone git://skyeye.git.sourceforge.net/gitroot/skyeye/skyeye
25           cd skyeye
26   fi
28   patch -p1 < ../0001-Add-some-macro-judgment-for-ubuntu-10.10.patch
29   patch < ../fix-makefile.patch
30   autoreconf
31   ./configure --sysconfdir=/usr/share --prefix=/usr
32   make lib
33   make
36 package() {
37         cd "$srcdir/skyeye"
38         make DESTDIR="${pkgdir}" install_lib
39         make DESTDIR="${pkgdir}" install
41         install -d ${pkgdir}/opt/skyeye
42         mv ${pkgdir}/usr/testsuite ${pkgdir}/opt/skyeye/
44         rm ${pkgdir}/usr/include/*.h
45         rm ${pkgdir}/usr/lib/libbfd.a
46         rm ${pkgdir}/usr/lib/libbfd.so
47         rm ${pkgdir}/usr/lib/libiberty.a
48         rm ${pkgdir}/usr/lib/libopcodes.a
49         rm ${pkgdir}/usr/lib/libopcodes.so