summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 77c2d5fdee4bbc8e294901755d4a617bf535c657 (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: Solomon Choina <shlomochoina@gmail.com>
pkgname=kawanime
pkgver=0.4.2
pkgrel=3
provides=("kawanime")
conflicts=("kawanime")
pkgdesc="Desktop app for anime fans"
arch=('x86_64')
url="https://github.com/Kylart/KawAnime"
license=('MIT')
depends=('dbus' 'glib2' 'hicolor-icon-theme' 'desktop-file-utils')
makedepends=('npm' 'python' 'nodejs')
#dpkg is not actually needed, it's just to avoid a build failure
source=("https://github.com/Kylart/KawAnime/archive/v${pkgver}.tar.gz")
sha256sums=('91c2d79ccc2a86aa9ed8fbcf7b0a4f84702494dc9c45e8e58a3055322e91ae45')

build() {
 cd "$srcdir/KawAnime-$pkgver"
 export VUE_APP_ANILIST_CLIENT_ID=2025
 npm install
 npm run build -- --linux deb
}

package() {
  cd "$srcdir/KawAnime-$pkgver/dist"
  ar x KawAnime_${pkgver}_amd64.deb
  tar -xf data.tar.xz
  mv usr "${pkgdir}"
  mv opt "${pkgdir}"
  mkdir -p "${pkgdir}"/usr/bin

  install -Dm755 /dev/stdin "$pkgdir"/usr/bin/$pkgname <<END
  #!/usr/bin/bash
  /opt/KawAnime/kawanime

END
}