1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="A utility to find and clean various forms of lint on a filesystem"
8 url="http://www.pixelbeat.org/fslint/"
10 depends=('pygtk' 'python2')
11 install=$pkgname.install
12 source=(http://www.pixelbeat.org/$pkgname/$pkgname-$pkgver.tar.gz)
13 sha256sums=('babbef4a34f42ab1d396152fd79b4353adc114b2e8d68b838e20a8067c5a3273')
16 cd ${srcdir}/$pkgname-$pkgver
19 install -d ${pkgdir}/usr/share/{man/man1,$pkgname/{doc,$pkgname/{fstool,supprt/rmlint}}}
21 sed -i -e s_^liblocation=.*_liblocation=\'/usr/share/fslint\'_ fslint-gui
23 install -D -m755 $pkgname-gui ${pkgdir}/usr/bin/$pkgname-gui
24 install -D -m644 $pkgname.glade ${pkgdir}/usr/share/$pkgname/$pkgname.glade
25 install -D -m755 -t ${pkgdir}/usr/share/$pkgname/$pkgname $pkgname/find* $pkgname/zipdir $pkgname/$pkgname
26 install -D -m755 -t ${pkgdir}/usr/share/$pkgname/$pkgname/fstool $pkgname/fstool/*
27 install -D -m755 -t ${pkgdir}/usr/share/$pkgname/$pkgname/supprt $pkgname/supprt/get* $pkgname/supprt/fslver
28 install -D -m755 -t ${pkgdir}/usr/share/$pkgname/$pkgname/supprt/rmlint fslint/supprt/rmlint/*
31 install -D -m644 fslint_icon.png ${pkgdir}/usr/share/pixmaps/fslint_icon.png
32 install -D -m644 fslint_icon.png ${pkgdir}/usr/share/fslint/fslint_icon.png
35 install -D -m644 $pkgname.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop
38 make -C po DESTDIR=${pkgdir}/usr DATADIR=share install
41 cp -r ${srcdir}/$pkgname-$pkgver/man/* ${pkgdir}/usr/share/man/man1
44 cp -r ${srcdir}/$pkgname-$pkgver/doc/* ${pkgdir}/usr/share/$pkgname/doc
47 sed -i 's/env python/env python2/g' ${pkgdir}/usr/bin/fslint-gui
48 sed -i 's/env python/env python2/g' ${pkgdir}/usr/share/fslint/fslint/supprt/rmlint/merge_hardlinks
49 sed -i 's/env python/env python2/g' ${pkgdir}/usr/share/fslint/fslint/supprt/rmlint/fixdup
50 sed -i 's/env python/env python2/g' ${pkgdir}/usr/share/fslint/fslint/fstool/dupwaste