summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c57a0fdae4be697e1eda78c27497e9aeaaa37caf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Kyle Keen <keenerd@gmail.com>

pkgname=edelib
pkgver=2.1
pkgrel=1
pkgdesc="Component construction library for Equinox Desktop Environment"
arch=('i686' 'x86_64')
url="http://equinox-project.org/"
_watch="http://equinox-project.org/wiki/Download"
license=('LGPL')
depends=('fltk' 'dbus-core' 'libstdc++5' 'python')
makedepends=('ftjam')
source=(http://downloads.sourceforge.net/project/ede/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('2e6ee2e1ceaea327967ed55868a1cb9f')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./autogen.sh
    CFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    CXXFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    MAKEFLAGS="-j2"
    ./configure --prefix=/usr
    jam
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    install -d "$pkgdir"/usr/{bin,lib}
    # errors for no good reason?
    jam prefix="$pkgdir/usr" install || true
}