summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3d69a478ae7a35d0006b7d244c5df5460e824b5 (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
pkgname=sunflower-git
_gitname=Sunflower
pkgver=0.4
pkgrel=1
pkgdesc="Small and highly customizable twin-panel file manager for Linux with support for plugins"
arch=('any')
url="https://github.com/MeanEYE/Sunflower"
options=(!strip !zipman)
license=('GPL3')
depends=('gtk3' 'python-gobject' 'desktop-file-utils' 'python-chardet' 'librsvg')
makedepends=('git')
optdepends=('vte: integrated vte-based terminal'
'python-mutagen: audio-metadata support'
'gvfs: mount-management')
conflicts=('sunflower')
source=('git://github.com/MeanEYE/Sunflower.git')
md5sums=('SKIP')
pkgver() {
	cd "${srcdir}/${_gitname}"
	git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

package() {
    cd "Sunflower"
    python setup.py install --root="$pkgdir/" --optimize=1
    install -Dm644 images/sunflower.png "${pkgdir}/usr/share/pixmaps/sunflower.png"
    rm "${pkgdir}/usr/share/sunflower/images/sunflower.png"
    rm -rd "${pkgdir}/usr/share/sunflower/trasnaltions"
    #install -d "${pkgdir}/usr/share/locale"
    cp -r "${srcdir}/Sunflower/translations/" "${pkgdir}/usr/share/locale"
    rm -f ${pkgdir}/usr/share/locale/*/LC_MESSAGES/*.po
    rm -f ${pkgdir}/usr/share/locale/*.pot
}