52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
# Description: Library for file management.
|
|
# URL: https://wiki.lxde.org/en/PCManFM
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: gtk gtk3 menu-cache xorg-libxdamage libfm-extra
|
|
# Optional: dbus-glib gvfs vala libexif
|
|
|
|
name=libfm
|
|
version=1.3.2
|
|
release=2
|
|
source=(https://downloads.sourceforge.net/pcmanfm/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cp -r $name-$version gtk3
|
|
cp -r $name-$version gtk2
|
|
|
|
cd $SRC/gtk2
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-gnu-ld \
|
|
--disable-nls \
|
|
--disable-gtk-doc-html
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=656231
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
cd $SRC/gtk3
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--with-gnu-ld \
|
|
--disable-nls \
|
|
--disable-gtk-doc-html \
|
|
--with-gtk=3
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share/locale
|
|
|
|
rm -r $PKG/usr/include/libfm
|
|
mv $PKG/usr/include/libfm-1.0/ $PKG/usr/include/libfm
|
|
|
|
# In libfm-extra
|
|
rm -r $PKG/usr/include/libfm/fm-{extra,version,xml-file}.h \
|
|
$PKG/usr/lib/libfm-extra.* \
|
|
$PKG/usr/lib/pkgconfig/libfm-extra.pc
|
|
}
|