blob: 982ae0eaa32ff1162690bbf88e4ce8aa2acf16de (
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
|
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
# Contributor: icepie <icepie.dev [at] gmail dot com>
_pkgname=tiny-rdm
pkgname=${_pkgname}-bin
pkgver=1.2.3
pkgrel=1
pkgdesc="A modern redis desktop manager. A better redis GUI client."
arch=("x86_64")
url="https://redis.tinycraft.cc/"
license=("GPL-3.0-or-later")
depends=('glibc' 'hicolor-icon-theme' 'gtk3' 'glib2' 'webkit2gtk' 'gdk-pixbuf2')
optdepends=()
provides=("${_pkgname}")
conflicts=("${_pkgname}" "${_pkgname}-git")
replaces=()
source=("${_pkgname}_${pkgver}-${arch}.deb::https://github.com/tiny-craft/tiny-rdm/releases/download/v${pkgver}/${_pkgname}_${pkgver}_linux_amd64.deb")
sha256sums=('2359abe5d2f6248981eada8e9eb6c9a0149be74132ac2fe1309d0ac503d4f573')
prepare(){
cd ${srcdir} || exit
tar -Jxvf data.tar.xz -C "${srcdir}"
}
package() {
cd ${srcdir} || exit
install -Dm755 ${srcdir}/usr/local/bin/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
# 替换 /usr/local/bin/ 为 /usr/bin/
sed -i 's/\/usr\/local\/bin\//\/usr\/bin\//g' ${srcdir}/usr/share/applications/${_pkgname}.desktop
install -Dm644 ${srcdir}/usr/share/applications/${_pkgname}.desktop ${pkgdir}/usr/share/applications/${_pkgname}.desktop
install -Dm644 ${srcdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png ${pkgdir}/usr/share/icons/hicolor/512x512/apps/${_pkgname}.png
}
|