blob: 36c10a3a914c636f9ba8ea5477d3fdcb30c60dc7 (
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
|
# Maintainer: Kafin <kevinliteon01@hotmail.com>
pkgname=decrediton
pkgver=2.0.5
_pkgver="v${pkgver}"
pkgrel=1
pkgdesc="Decrediton is a cross-platform GUI for decred written in node.js using Electron."
arch=('x86_64')
url="https://decred.org/"
license=('ISC')
source=("https://github.com/decred/decred-binaries/releases/download/${_pkgver}/${pkgname}-linux-amd64-${_pkgver}.tar.gz"
"decred-dcr.svg"
"${pkgname}.desktop")
sha256sums=('1898adf7a22241570159f0b4547b6b2d19c4f89e1d51e6cc436342e36db5fdce'
'a5d4ca6879438bbf02999dbf84f4fb3b0088fbac385f6cbc9722baf1baa7c8aa'
'5113de3821e1445dc47dc7ea11706614432189d29722f3cd05f5535aed8b6042')
package() {
# Install the main files.
install -d "${pkgdir}/opt/${pkgname}"
cp -a "${srcdir}/Decrediton-${_pkgver}/." "${pkgdir}/opt/${pkgname}"
# Exec bit
chmod 755 "${pkgdir}/opt/${pkgname}/${pkgname}"
# Desktop Entry
install -d "${pkgdir}/usr/share/applications"
install "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications"
# Main binary
install -d "${pkgdir}/usr/bin"
ln -s "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
# Create symbolic link to the icon
install -d "${pkgdir}/usr/share/pixmaps"
install -Dm644 $srcdir/decred-dcr.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg
}
|