summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 365298354cc99490d1d40a16760e768ed5bfc0ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Andrew Chen <andrew.chuanye.chen@gmail.com>

pkgname=sourcery-codebench-mips-linux-gnu
pkgver=2015.11_32
pkgrel=1
pkgdesc="Sourcery CodeBench Lite ${pkgver//_/-} for MIPS GNU/Linux"
url='https://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/mips-gnu-linux'
arch=('i686' 'x86_64')
license=('GPL')
source=("https://sourcery.mentor.com/GNUToolchain/package13838/public/mips-linux-gnu/mips-${pkgver//_/-}-mips-linux-gnu-i686-pc-linux-gnu.tar.bz2")
md5sums=('137b6d121fc1aaa2e27b67c88885401f')

if [ "$CHARH" == 'x86_64' ]; then
  depends=(lib32-glibc)
fi

package() {
  cd mips-${pkgver%_*}
  mkdir -p $pkgdir/usr
  cp -a * $pkgdir/usr/
  mkdir -p $pkgdir/usr/share/licenses/mips-linux-gnu
  cp share/doc/mips-mips-linux-gnu/LICENSE.txt $pkgdir/usr/share/licenses/mips-linux-gnu/
}