aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/libfm-extra/APKBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/community/libfm-extra/APKBUILD b/community/libfm-extra/APKBUILD
new file mode 100644
index 0000000000..bca643c50d
--- /dev/null
+++ b/community/libfm-extra/APKBUILD
@@ -0,0 +1,53 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+
+#this package is needed for bootstrap libfm -> menu-cache-> libfm-extra
+pkgname=libfm-extra
+pkgver=1.3.1
+pkgrel=0
+pkgdesc="Library for file management"
+url="https://wiki.lxde.org/en/PCManFM"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="
+ autoconf
+ automake
+ dbus-glib-dev
+ gtk-doc
+ intltool
+ libtool
+ "
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/lxde/libfm/archive/$pkgver.tar.gz "
+
+builddir="$srcdir"/libfm-$pkgver
+
+prepare() {
+ default_prepare
+ ./autogen.sh
+}
+
+build() {
+ ./configure \
+ --prefix=/usr \
+ --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
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "$pkgdir"/usr/include/libfm
+ mv "$pkgdir"/usr/include/libfm-1.0/ "$pkgdir"/usr/include/libfm
+}
+
+sha512sums="82bbcb1b9c7d4543bcb075906bdc1554462b041ad936e2f0334ae478302b19808cdbfe6d0c86a039bbd72a2491f2d2ada61a324fe3933a8dde16a03d93bef2bc libfm-extra-1.3.1.tar.gz"