updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / alloy / PKGBUILD
blob99760ae73c3db737a10c70c8cb6cd90085c5e2c4
1 # Alloy is developed by the Software Design Group at MIT.
2 # See http://sdg.csail.mit.edu/ or http://alloy.mit.edu
3 # Maintainer: Rodney Price <rod@thirdoption.info>
5 pkgname="alloy"
6 pkgver=4.1.10
7 pkgrel=1 
8 pkgdesc="A lightweight modelling language for software design."
9 url="http://alloy.mit.edu/alloy4/"
10 arch=('i686' 'x86_64')
11 license=('MIT')
12 depends=('java-runtime')
13 makedepends=()
14 conflicts=()
15 replaces=()
16 backup=()
17 install=alloy.install
18 source=("http://alloy.mit.edu/alloy4/${pkgname}4.jar" 
19         "alloy" "alloy.sh" "alloy.install")
20 md5sums=('5893b41934de4d339f9b15e2c254e10c' 'df91401eca5ee97d4c36313899202cf9'\
21          '2ea64ddc7c9cf6ddaf5b54fa056a27b4' '2dc90f53c824b6cbb807192bbf5d957a')
22 build() {
23   mkdir -p ${pkgdir}/usr/share/alloy
24   mkdir -p ${pkgdir}/usr/bin
25   mkdir -p ${pkgdir}/etc/profile.d
26   cd ${srcdir}
27   install -m 644 -D alloy4.jar ${pkgdir}/usr/share/alloy/
28   install -m 755 -D ../alloy ${pkgdir}/usr/bin/
29   install -m 755 -D ../alloy.sh ${pkgdir}/etc/profile.d
30   # Link to location of binary package file
31   if [ ${PKGDEST} -ne ${startdir} ]; then
32     ln -s ${PKGDEST}/${pkgname}-${pkgver}-${pkgrel}-${CARCH}.pkg.tar.gz \
33           ${startdir}/${pkgname}-${pkgver}-${pkgrel}-${CARCH}.pkg.tar.gz
34   fi