summaryrefslogtreecommitdiffstats
path: root/main/libfm/APKBUILD
blob: 77ea4a56139b15585d2b4a711daf51c875815d83 (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
32
33
34
35
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>

pkgname=libfm
pkgver=1.2.0
pkgrel=0
pkgdesc='Library for file management'
url='http://pcmanfm.sourceforge.net/'
arch='all'
license='GPL'
makedepends='gtk+2.0-dev menu-cache-dev udisks-dev intltool dbus-glib-dev
             libexif-dev'
options='libtool'
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/pcmanfm/$pkgname-$pkgver.tar.xz"

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr \
    --sysconfdir=/etc \
    --enable-udisks \
    --with-gnu-ld  || return 1
  make LDFLAGS+=' -lgobject-2.0 -lglib-2.0' || return 1
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install || return 1

  rm -rf "$pkgdir"/usr/include/libfm
  mv "$pkgdir"/usr/include/libfm-1.0/ "$pkgdir"/usr/include/libfm 
}

md5sums="07d1361bc008db46b0fd4c775f5696de  libfm-1.2.0.tar.xz"
sha256sums="f0513484e43dcc576097508b7d666f7eb72530963e5a21692034a7ea6a6efc22  libfm-1.2.0.tar.xz"
sha512sums="a62d3b8a26bf52c058f49e9b5328409f32189c708c0de8f419e7946e0be19f2d5dad604a214381b98bf1b26a81e85f60bced8b29b40bbfeb7e1c0aee4d1e36f2  libfm-1.2.0.tar.xz"