summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5badc71d45d8b43d77ab3386c9dc621c4efebc29 (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
# Maintainer: Clarence <xjh.azzbcc@gmail.com>
_pkgname=fastoredis
pkgname=${_pkgname}
pkgver=2.4.0
_build_ver=5993817
pkgrel=1
pkgdesc="FastoRedis, cross-platform open source Redis GUI management tool."
arch=('x86_64')
url="https://fastoredis.com/"
license=('custom')
depends=('qt5-base' 'python2')
makedepends=('rsync')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("${_pkgname}.desktop"
        "${_pkgname}-${pkgver}-x86_64.tar.gz::https://fastoredis.com/downloads/linux/${_pkgname}-${pkgver}-x86_64.tar.gz")
md5sums=('a3da6c7bf56828a0b94e106960a41f9f'
         '723eb97c191406c0a98252ce9d4b77a2')

build() {
    echo ${_pkgname} ${pkgver}
}

package() {
    src_base_dir=${srcdir}/${_pkgname}-${pkgver}-x86_64-${_build_ver}/opt/${_pkgname}
    pkg_base_dir=${pkgdir}/opt/${_pkgname}

    install -d -m 755 "${pkg_base_dir}/share"
    install -d -m 755 "${pkgdir}/usr/share/pixmaps/"
    install -d -m 755 "${pkgdir}/usr/share/applications/"
    install -d -m 755 "${pkgdir}/usr/share/licenses/${_pkgname}/"

    rsync -rtl "${src_base_dir}/bin" "${pkg_base_dir}"
    rsync -rtl "${src_base_dir}/share/resources" "${pkg_base_dir}/share"

    install -D -m 644 "${_pkgname}.desktop" "${pkgdir}/usr/share/applications/"
    install -D -m 644 "${src_base_dir}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/"
    install -D -m 644 "${src_base_dir}/share/icons/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/"
}