updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / bcompare / PKGBUILD
blobb382f34138ae5c96ee1e7ac73c23bfcc282d848d
1 # Maintainer: Musikolo <musikolo {at} hotmail [dot] com>
2 # Contributor: Magician <magician21 ett lycos daht com>
3 # Original PKGBUILD file from:
4 # - https://bbs.archlinux.org/viewtopic.php?pid=757428#p757428
5 # - http://www.scootersoftware.com/vbulletin/showpost.php?s=3c1f289bc76655230b49f440dbe17b53&p=26449&postcount=7
7 pkgname=bcompare
8 pkgver=3.3.3.14128
9 pkgrel=2
10 pkgdesc="Beyond Compare 3: Compare, sync, and merge files and folders"
11 arch=('i686' 'x86_64')
12 url="http://www.scootersoftware.com"
13 license=('custom')
14 groups=('utility')
15 optdepends=()
16 backup=()
18 if [ "${CARCH}" = 'x86_64' ]; then
19     ARCH='amd64'
20     depends=('lib32-qt' 'lib32-qt3' 'sh')
21     source=("http://www.scootersoftware.com/${pkgname}-${pkgver}_amd64.deb")
22     noextract=("http://www.scootersoftware.com/${pkgname}-${pkgver}_amd64.deb")
23     md5sums=('18c04c9968a46f49a29c0b80ad840303')
25 elif [ "${CARCH}" = 'i686' ]; then
26     ARCH='i386'
27     depends=('sh')
28     source=("http://www.scootersoftware.com/${pkgname}-${pkgver}_i386.deb")
29     noextract=("http://www.scootersoftware.com/${pkgname}-${pkgver}_i386.deb")
30     md5sums=('5039016741399388dd24b258680b053e')
33 build() {
35   # Set the file name depending on the architecture
36   if [ "${CARCH}" = 'x86_64' ]; then
37      FILE_BASE_NAME="${pkgname}-${pkgver}_amd64"
38      _prefixdir=../pkg/usr/lib32/beyondcompare
39   elif [ "${CARCH}" = 'i686' ]; then
40      FILE_BASE_NAME="${pkgname}-${pkgver}_i386"
41      _prefixdir=../pkg/usr/lib/beyondcompare
42   fi
44   # Extract all files from .deb file, set default permissions and move them to the pkg dir
45   ar x $FILE_BASE_NAME.deb
46   tar -zxf data.tar.gz
47   chmod -R `umask -S` "${srcdir}/usr"
48   mv "${srcdir}/usr" "${pkgdir}"
50   # Clean up unneded files for
51   cd "${_prefixdir}"
52   rm -f GPG-KEY-scootersoftware
53   if [ "${CARCH}" = 'i686' ]; then
54     rm -f ext/*.amd64.so
55   fi