1 # AutoPackage: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
7 pkgdesc="The multi-distribution binary packaging framework for Linux systems"
9 url="http://www.${pkgname}.org/"
14 if [ "${CARCH}" == "i686" ]; then
15 source=(http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}-x86.tar.bz2)
16 elif [ "${CARCH}" == "x86_64" ]; then
17 source=(http://${pkgname}.googlecode.com/files/${pkgname}-${pkgver}-x86_64.tar.bz2)
21 cd ${srcdir}/${pkgname}
24 sed -i "s|%AutopackagePrefix%|/usr|g" etc/config || return 1
25 install -D etc/config ${pkgdir}/etc/${pkgname}/config
28 #./install --silent --prefix ${pkgdir}/usr/ || return 1
31 install -D package ${pkgdir}/usr/bin/package
34 install -d ${pkgdir}/usr/{libexec/${pkgname}/,share/${pkgname}/}
37 cp -r libexec/* ${pkgdir}/usr/libexec/${pkgname}/
38 ln -s /usr/libexec/${pkgname}/libcurl.so.2.0.2 ${pkgdir}/usr/libexec/${pkgname}/libcurl.so.2
39 ln -s /usr/libexec/${pkgname}/libuau.so.3.0.0 ${pkgdir}/usr/libexec/${pkgname}/libuau.so.3
42 #chmod +x share/apkg-*
43 cp share/apkg-* ${pkgdir}/usr/share/${pkgname}/
44 #cp share/remove ${pkgdir}/usr/share/${pkgname}/
45 cp -r share/locale ${pkgdir}/usr/share/
48 if [ "${CARCH}" == "i686" ]; then
49 sha1sums=('6575896f005e20138412f96ecbd78bcdc4826978')
50 elif [ "${CARCH}" == "x86_64" ]; then
51 sha1sums=('ca41c17b0e884345e70ed9b0d606a9d7df43db2c')