updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / aliedit / PKGBUILD
blob3504edaf84ae6c1dd13a600c87b7d332afb3a700
1 pkgname=aliedit
2 pkgver=1.0.3.20
3 pkgrel=1
4 pkgdesc='www.alipay.com security control'
5 url='http://www.alipay.com'
6 arch=('i686' 'x86_64')
7 license=('unknown')
8 depends=('libpng12')
9 source=('https://download.alipay.com/alipaysc/linux/aliedit/1.0.3.20/aliedit.tar.gz')
10 md5sums=('bb3e6270fc85c532beb8ee30b1deb80a')
11 build(){
12         cd ${srcdir}
13         ARCHIVE=`awk '/^__ARCHIVE_BELOW__/ {print NR + 1; exit 0; }' ${srcdir}/aliedit.sh`
14         tail -n+$ARCHIVE aliedit.sh | tar xzvm -C ${srcdir}/
15         if [ "$CARCH" = "i686" ]; then
16                 install -D -m644 ${srcdir}/lib/libaliedit32.so ${pkgdir}/usr/lib/mozilla/plugins/libaliedit32.so
17         elif [ "$CARCH" = "x86_64" ]; then
18                 install -D -m644 ${srcdir}/lib/libaliedit64.so ${pkgdir}/usr/lib/mozilla/plugins/libaliedit64.so
19         fi