blob: d31e3abfd081ecda5bbc80164bb7312cf7c2a6c0 (
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
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
_pkgname=converternow
pkgname=$_pkgname-bin
pkgver=4.2.3
pkgrel=1
pkgdesc="The Unit Converter app: easy, immediate and multi-platform (binary release)"
url="https://github.com/ferraridamiano/ConverterNOW"
license=('GPL-3.0-or-later')
arch=('x86_64')
depends=('gtk3')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=($_pkgname-linux-x64-$pkgver.tar.gz::"$url/releases/download/v$pkgver/$_pkgname-linux-x64.tar.gz")
sha256sums=('0eb04537fc26c4f106755c81e1baa4e38cde4cb3b230e5287303c3e883fde20f')
prepare() {
# Create a shortcut
echo -e "[Desktop Entry]\n\
Name=Converter NOW\n\
Comment=The Unit Converter app: easy, immediate and multi-platform\n\
Exec=$_pkgname %U\n\
Icon=$_pkgname\n\
Terminal=false\n\
Type=Application\n\
StartupWMClass=Converter NOW" > $_pkgname.desktop
}
package() {
# Create directories
mkdir -p "$pkgdir/opt/ConverterNOW" "$pkgdir/usr/bin"
# Install
install -Dm644 $_pkgname.desktop -t "$pkgdir/usr/share/applications"
install -Dm644 data/flutter_assets/assets/app_icons/logo.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/$_pkgname.png"
mv data lib $_pkgname "$pkgdir/opt/ConverterNOW"
ln -s /opt/ConverterNOW/$_pkgname "$pkgdir/usr/bin"
}
|