upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / fox / repos / community-x86_64 / PKGBUILD
blob357862c329983d323595efb432a1736d8feeb5a7
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Ben <ben@benmazer.net>
4 pkgname=fox
5 epoch=1
6 pkgver=1.6.57
7 pkgrel=3
8 pkgdesc="Free Objects for X: GUI Toolkit for C++"
9 arch=('x86_64')
10 url="http://www.fox-toolkit.org/"
11 license=('LGPL' 'custom')
12 depends=('bzip2' 'libxcursor' 'libxft' 'libxrandr' 'libxi' 'libpng' 'libtiff' 'glu')
13 makedepends=('mesa' 'gendesk' 'imagemagick')
14 optdepends=('perl')
15 source=(http://fox-toolkit.org/ftp/fox-$pkgver.tar.gz)
16 sha256sums=('65ef15de9e0f3a396dc36d9ea29c158b78fad47f7184780357b929c94d458923')
18 prepare() {
19   cd "$srcdir"/${pkgname}-${pkgver}
20   gendesk -n -f --pkgname=adie --pkgdesc="Fast and convenient programming text editor" --categories="Utility;TextEditor"
21   gendesk -n -f --pkgname=calculator --name="FOX Calculator" --pkgdesc="Simple desktop calculator" --categories="Utility;Calculator"
22   gendesk -n -f --pkgname=ControlPanel --name="FOX Desktop Setup" --pkgdesc="Setup desktop appearance for FOX applications" --categories="Settings;DesktopSettings"
23   gendesk -n -f --pkgname=PathFinder --pkgdesc="File browser" --categories="System;FileTools;FileManager"
26 build() {
27   cd "$srcdir"/${pkgname}-${pkgver}
28   convert +set date:create +set date:modify adie/big_gif.gif adie.png
29   convert +set date:create +set date:modify calculator/bigcalc.gif calculator.png
30   convert +set date:create +set date:modify pathfinder/file_gif.gif PathFinder.png
32   export CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
33   ./configure   --prefix=/usr \
34                 --enable-release \
35                 --with-xft=yes \
36                 --with-opengl=yes \
37                 --with-xim \
38                 --with-xshm \
39                 --with-shape \
40                 --with-xcursor \
41                 --with-xrender \
42                 --with-xrandr \
43                 --with-xfixes \
44                 --with-xinput
45   make
48 package() {
49   cd "$srcdir"/${pkgname}-${pkgver}
50   make DESTDIR="$pkgdir" install
52   pushd tests
53   make ControlPanel
54   install -m755 .libs/ControlPanel "$pkgdir"/usr/bin/
55   popd
57   install -Dm644 LICENSE_ADDENDUM "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
59   install -dm755 "$pkgdir"/usr/share/{applications,pixmaps}
60   install -m644 *.png "$pkgdir"/usr/share/pixmaps/
61   install -m644 *.desktop "$pkgdir"/usr/share/applications/