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

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

MAKEDEPS="make libtool intltool autoconf automake gtk3"
DEPS="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
}