summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 93ac7947845dd96f439f6b78c26cd06e7a913650 (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
36
37
38
39
40
41
pkgname=sunflower-nightly-git
_gitname=Sunflower
pkgver=0.4.62.r184.g1024bbdd
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')

prepare() {
    cd "${srcdir}/${_gitname}"
    git checkout develop
}

pkgver() {
	cd "${srcdir}/${_gitname}"
	local ver=$(git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g')
    [[ -z $ver ]] && ver=$(git describe --long --always)
    echo $ver | tee /dev/stderr
}

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/translations"
    #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
}