2020-04-25 22:30:39 +10:00
|
|
|
# Description: Extra library for file management
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://wiki.lxde.org/en/PCManFM
|
2020-04-25 22:30:39 +10:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
|
|
# Depends on: glib intltool
|
|
|
|
|
|
|
|
name=libfm-extra
|
2021-02-14 21:23:00 +11:00
|
|
|
version=1.3.2
|
2020-04-25 22:30:39 +10:00
|
|
|
release=1
|
|
|
|
source=(https://downloads.sourceforge.net/pcmanfm/libfm-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd libfm-$version
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--with-extra-only \
|
|
|
|
--with-gtk=no
|
|
|
|
|
2021-02-14 21:23:00 +11:00
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=656231
|
2020-04-25 22:30:39 +10:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
|
|
|
make
|
2021-02-14 21:23:00 +11:00
|
|
|
make DESTDIR="$SRC/libfm-extra" install
|
2020-04-25 22:30:39 +10:00
|
|
|
|
2021-02-14 21:23:00 +11:00
|
|
|
install -d $PKG/usr/include/libfm $PKG/usr/lib/pkgconfig
|
|
|
|
install -m 644 -t $PKG/usr/include/libfm $SRC/libfm-extra/usr/include/libfm/fm-{extra,version,xml-file}.h
|
|
|
|
install -m 644 -t $PKG/usr/lib $SRC/libfm-extra/usr/lib/libfm-extra.*
|
|
|
|
install -m 644 -t $PKG/usr/lib/pkgconfig $SRC/libfm-extra/usr/lib/pkgconfig/libfm-extra.pc
|
|
|
|
|
|
|
|
rm $PKG/usr/lib/libfm-extra.so.4
|
|
|
|
ln -s libfm-extra.so.4.1.3 $PKG/usr/lib/libfm-extra.so.4
|
2020-04-25 22:30:39 +10:00
|
|
|
}
|