summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f03abaee32078552599a4bb1afa68c6ea553908b (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Maintainer: Douglas <hashy.software@gmail.com>
_appimage=hasherino
_desktopentry="[Desktop Entry]
Type=Application
Version=1.0
Name=hasherino
Comment=A twitch chat client
Exec=$_appimage
Terminal=false
Categories=Python;Chat;Twitch;Network;InstantMessaging;"
pkgname=hasherino-latest-bin
pkgver=0.1.15
pkgrel=1
epoch=
pkgdesc="A twitch chat client"
arch=('x86_64')
url="https://github.com/Hashy-Software/hasherino"
license=('MIT')
groups=()
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=("hasherino")
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(
  "$pkgname::git+https://github.com/Hashy-Software/hasherino.git"
  "https://github.com/Hashy-Software/hasherino/releases/download/v$pkgver/$_appimage"
)
noextract=()
sha256sums=(
  SKIP
  SKIP
)

prepare() {
  cd "$srcdir"
  chmod +x "$_appimage"
}
pkgver() {
  cd "$srcdir/$pkgname"
  git describe --tags --abbrev=0 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
  cd "$srcdir"
  install -Dm755 $_appimage "$pkgdir/opt/hasherino/$_appimage"
  install -dm755 "$pkgdir/usr/bin"
  ln -s "/opt/hasherino/$_appimage" "$pkgdir/usr/bin/hasherino"
  install -Dm644 /dev/null "$pkgdir/usr/share/applications/com.hasherino.hasherino.desktop"
  echo -e "$_desktopentry" > "$pkgdir/usr/share/applications/com.hasherino.hasherino.desktop"
}