updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / autopackage / PKGBUILD
blob42079845f51ab5cff31ea2a95d9abc4bb1aed7c7
1 # AutoPackage: Installer: Arch
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
4 pkgname=autopackage
5 pkgver=1.4.2
6 pkgrel=2
7 pkgdesc="The multi-distribution binary packaging framework for Linux systems"
8 arch=("i686" "x86_64")
9 url="http://www.${pkgname}.org/"
10 license=("LGPL")
11 depends=()
12 makedepends=()
13 options=(!emptydirs)
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)
20 build() {
21         cd ${srcdir}/${pkgname}
23         # Config
24         sed -i "s|%AutopackagePrefix%|/usr|g" etc/config || return 1
25         install -D etc/config ${pkgdir}/etc/${pkgname}/config
27         # All
28         #./install --silent --prefix ${pkgdir}/usr/ || return 1
30         # Binaries
31         install -D package ${pkgdir}/usr/bin/package
33         # Directories
34         install -d ${pkgdir}/usr/{libexec/${pkgname}/,share/${pkgname}/}
36         # Libraries
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
41         # Application
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')