blob: c36623b09942e91a417e4fad19dad62542085c8b (
plain)
1 # Description: Library for file management.
2 # URL: http://pcmanfm.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gtk menu-cache xorg-libxdamage
5
6 name=libfm
7 version=1.3.1
8 release=2
9 source=(https://downloads.sourceforge.net/pcmanfm/$name-$version.tar.xz)
10
11 build() {
12 cd $name-$version
13
14 # https://github.com/lxde/libfm/issues/35
15 sed -i 's/create=xarchiver --add-to %F/create=xarchiver --compress %F/' data/archivers.list
16
17 autoreconf -fi
18
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --with-gnu-ld \
23 --disable-nls \
24 --disable-gtk-doc-html
25
26 # https://bugzilla.gnome.org/show_bug.cgi?id=656231
27 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
28
29 make
30 make DESTDIR=$PKG install
31
32 rm -r $PKG/usr/share/locale
33
34 if [[ -h $PKG/usr/include/libfm/libfm-1.0 ]]; then
35 rm -r $PKG/usr/include/libfm
36 cd $PKG/usr/include/
37 ln -s libfm-1.0 libfm
38 fi
39 }
|