updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / bluegriffon / PKGBUILD
blob8f7d0f4efdb0db1812f49069328c7e262899834a
1 # Maintainer: Romain Labolle <ravomavian@gmail.com>
3 arch=('i686' 'x86_64')
4 license=('MPL' 'GPL' 'LGPL')
6 pkgname=bluegriffon
7 pkgdesc='The next-generation Web Editor'
8 url='http://bluegriffon.org/'
9 pkgver=1.3.1
10 pkgrel=2
11 _ver=$pkgver
12 #_dir=nightlies/latest
13 _dir=$pkgver
15 source=( 'bluegriffon.desktop' 'bluegriffon.install' )
16 md5sums=('e532ce3a2163d91b11a19176dcf2dbe1'
17          '42d885a1665f32babc8045b2041949ea')
18 sha1sums=('51753c20f5fc55447ddbbf0d17e62fd518131f5c'
19           'a7df86765bc9c6068000376bda0fdcace6d0d678')
20           
21 depends=('libpng' 'libjpeg' 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info' )
22 [[ "$CARCH" == "x86_64" ]] && depends[0]="libpng12" && depends[1]="libjpeg6"
23 makedepends=('wget')
24 install='bluegriffon.install'
26 build() {
27         cd ${srcdir}
28         BG_ARCH="x86"
29         [[ "$CARCH" == "x86_64" ]] && BG_ARCH="x86_64"
30         
31         BG_SRC="BlueGriffon-${_ver}-Linux-${BG_ARCH}.tar.bz2"
32         BG_SRC_URI="http://bluegriffon.org/freshmeat/${_dir}/${BG_SRC}"
33         BG_MD5="http://bluegriffon.org/freshmeat/${_dir}/MD5SUMS"
34         msg "Downloading..."
35         wget -N ${BG_SRC_URI}
36         msg "Checking md5..."
37         wget -O- ${BG_MD5} 2>/dev/null | grep "${BG_SRC}" | md5sum -c --status
38         msg "Extracting..."
39         bsdtar -x -f ${BG_SRC}
40         msg "Packaging..."
42         mkdir -p ${pkgdir}/{usr/{bin,share/{applications,pixmaps}},opt}
43         cp -R BlueGriffon ${pkgdir}/opt/${pkgname}
45         ln -s /opt/${pkgname}/bluegriffon ${pkgdir}/usr/bin/${pkgname}
46         [[ "$CARCH" == "x86_64" ]] && ln -s /usr/lib/libpng.so ${pkgdir}/opt/${pkgname}/libpng12.so.0
47         install -m644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/
48         install -m644 ${srcdir}/BlueGriffon/chrome/icons/default/default48.png ${pkgdir}/usr/share/pixmaps/${pkgname}-icon.png