summaryrefslogtreecommitdiff
path: root/repo/system/libfm-extra/libfm-extra.xibuild
blob: 7cb00fa16ebe880d4e0ed52dbec70d7d382ef175 (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-extra"
DESC="Library for file management (Extra)"

MAKEDEPS="make libtool intltool autoconf automake gtk3"
DEPS="libexif"

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-only \
        --with-gnu-ld
    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}