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
10 pkgdesc="Beyond Compare 3: Compare, sync, and merge files and folders"
11 arch=('i686' 'x86_64')
12 url="http://www.scootersoftware.com"
18 if [ "${CARCH}" = 'x86_64' ]; then
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
28 source=("http://www.scootersoftware.com/${pkgname}-${pkgver}_i386.deb")
29 noextract=("http://www.scootersoftware.com/${pkgname}-${pkgver}_i386.deb")
30 md5sums=('5039016741399388dd24b258680b053e')
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
44 # Extract all files from .deb file, set default permissions and move them to the pkg dir
45 ar x $FILE_BASE_NAME.deb
47 chmod -R `umask -S` "${srcdir}/usr"
48 mv "${srcdir}/usr" "${pkgdir}"
50 # Clean up unneded files for
52 rm -f GPG-KEY-scootersoftware
53 if [ "${CARCH}" = 'i686' ]; then