summaryrefslogtreecommitdiff
path: root/repo/libfm/libfm.xibuild
blob: c808057b07731e0c9cc4c2910d5a2d64ea521bdc (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
#!/bin/sh

NAME="libfm"
DESC="Library for file management"

MAKEDEPS="make libtool intltool autoconf automake gtk3 libexif menu-cache"

PKG_VER=1.3.2
SOURCE="https://github.com/lxde/libfm/archive/$PKG_VER.tar.gz"

prepare () {
    ./autogen.sh
}

build () {
    ./configure \
        --prefix=/usr \
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --disable-static \
        --with-gtk=3 \
        --with-extra \
        --with-gnu-ld
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}