summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD34
2 files changed, 32 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ae2b3f23696..41573f536f4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,20 @@
+# Generated by mksrcinfo v8
+# Thu Jan 26 14:00:50 UTC 2017
pkgbase = squeak-image
pkgdesc = Image file for squeak VM
- pkgver = 5.0
+ pkgver = 5.1
pkgrel = 1
url = http://www.squeak.org
- arch = any
+ arch = i686
+ arch = x86_64
license = custom:MIT
license = custom:XEROX
license = APACHE
depends = squeak-vm
- source = http://ftp.squeak.org/5.0/Squeak5.0-15113.zip
- md5sums = b89d56eebd65e9955cd78fa9de3e67cd
+ source_i686 = http://ftp.squeak.org/5.1/Squeak5.1-16549-32bit/Squeak5.1-16549-32bit.zip
+ md5sums_i686 = 43fd465af1e8e8cb2666a3708e72d848
+ source_x86_64 = http://ftp.squeak.org/5.1/Squeak5.1-16549-64bit/Squeak5.1-16549-64bit.zip
+ md5sums_x86_64 = 391b6ea09fd686e3bdf0ef6f1d851de4
pkgname = squeak-image
diff --git a/PKGBUILD b/PKGBUILD
index f31fda2b174..a792a64892b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,35 @@
## Maintainer: zoe <chp321@gmail.com>
pkgname=squeak-image
-pkgver=5.0
-bid=15113
+pkgver=5.1
+bid=16549
pkgrel=1
-arch=('any')
+arch=('i686' 'x86_64')
pkgdesc="Image file for squeak VM"
url="http://www.squeak.org"
license=('custom:MIT' 'custom:XEROX' 'APACHE')
depends=('squeak-vm')
-source=(http://ftp.squeak.org/$pkgver/Squeak$pkgver-$bid.zip)
-md5sums=('b89d56eebd65e9955cd78fa9de3e67cd')
+
+source_x86_64=("http://ftp.squeak.org/${pkgver}/Squeak${pkgver}-${bid}-64bit/Squeak${pkgver}-${bid}-64bit.zip")
+md5sums_x86_64=('391b6ea09fd686e3bdf0ef6f1d851de4')
+
+source_i686=("http://ftp.squeak.org/${pkgver}/Squeak${pkgver}-${bid}-32bit/Squeak${pkgver}-${bid}-32bit.zip")
+md5sums_i686=('43fd465af1e8e8cb2666a3708e72d848')
package() {
- mkdir -p $pkgdir/usr/lib/squeak
+ mkdir -p ${pkgdir}/usr/lib/squeak
+
+ if [ $CARCH = 'x86_64' ]
+ then
+ _arch='64bit'
+ elif [ $CARCH = 'i686' ]
+ then
+ _arch='32bit'
+ fi
- install -m644 Squeak$pkgver-$bid.image $pkgdir/usr/lib/squeak/Squeak$pkgver-$bid.image
- install -m644 Squeak$pkgver-$bid.changes $pkgdir/usr/lib/squeak/Squeak$pkgver-$bid.changes
+ install -m644 Squeak${pkgver}-${bid}-${_arch}.image ${pkgdir}/usr/lib/squeak/Squeak${pkgver}-${bid}-${_arch}.image
+ install -m644 Squeak${pkgver}-${bid}-${_arch}.changes ${pkgdir}/usr/lib/squeak/Squeak${pkgver}-${bid}-${_arch}.changes
- ln -s Squeak$pkgver-$bid.image $pkgdir/usr/lib/squeak/squeak.image
- ln -s Squeak$pkgver-$bid.changes $pkgdir/usr/lib/squeak/squeak.changes
-} \ No newline at end of file
+ ln -s Squeak${pkgver}-${bid}-${_arch}.image ${pkgdir}/usr/lib/squeak/squeak.image
+ ln -s Squeak${pkgver}-${bid}-${_arch}.changes ${pkgdir}/usr/lib/squeak/squeak.changes
+}