1 # Maintainer: Romain Labolle <ravomavian@gmail.com>
4 license=('MPL' 'GPL' 'LGPL')
7 pkgdesc='The next-generation Web Editor'
8 url='http://bluegriffon.org/'
12 #_dir=nightlies/latest
15 source=( 'bluegriffon.desktop' 'bluegriffon.install' )
16 md5sums=('e532ce3a2163d91b11a19176dcf2dbe1'
17 '42d885a1665f32babc8045b2041949ea')
18 sha1sums=('51753c20f5fc55447ddbbf0d17e62fd518131f5c'
19 'a7df86765bc9c6068000376bda0fdcace6d0d678')
21 depends=('libpng' 'libjpeg' 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info' )
22 [[ "$CARCH" == "x86_64" ]] && depends[0]="libpng12" && depends[1]="libjpeg6"
24 install='bluegriffon.install'
29 [[ "$CARCH" == "x86_64" ]] && BG_ARCH="x86_64"
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"
37 wget -O- ${BG_MD5} 2>/dev/null | grep "${BG_SRC}" | md5sum -c --status
39 bsdtar -x -f ${BG_SRC}
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