diff options
author | Jean Lucas | 2019-08-07 15:00:26 -0400 |
---|---|---|
committer | Jean Lucas | 2019-08-07 15:02:25 -0400 |
commit | a4920d6b6f055ed8dd23b55afb338a68b8f05c05 (patch) | |
tree | 32afe3ca0a0fbb6539e59c4dff1a1b1216fbf80b | |
download | aur-a4920d6b6f055ed8dd23b55afb338a68b8f05c05.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 47 | ||||
-rw-r--r-- | PKGBUILD | 47 | ||||
-rw-r--r-- | electron-builder.patch | 18 | ||||
-rw-r--r-- | yuna.desktop | 9 |
4 files changed, 121 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e8bfe08d8cab --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,47 @@ +pkgbase = yuna + pkgdesc = Anime player integating AniList, Crunchyroll, and Hidive + pkgver = 1.3.9 + pkgrel = 1 + url = https://yuna.moe + arch = i686 + arch = x86_64 + license = AGPL3 + makedepends = yarn + makedepends = nodejs>=10 + makedepends = python2 + depends = alsa-lib + depends = atk + depends = at-spi2-atk + depends = at-spi2-core + depends = cairo + depends = dbus + depends = gdk-pixbuf2 + depends = glib2 + depends = gtk3 + depends = hicolor-icon-theme + depends = libcups + depends = libx11 + depends = libxcb + depends = libxcomposite + depends = libxcursor + depends = libxdamage + depends = libxext + depends = libxfixes + depends = libxi + depends = libxrandr + depends = libxrender + depends = libxss + depends = libxtst + depends = nspr + depends = nss + depends = pango + options = !strip + source = yuna-1.3.9.tar.gz::https://github.com/BeeeQueue/yuna/archive/v1.3.9.tar.gz + source = electron-builder.patch + source = yuna.desktop + sha512sums = 519f3ec59b265a757b17617e26d55a36486cbf63785386c894b5afc055ca958c96d8fbe1c08d5d3b69cfeb76dc4b7a6dd798db4c946b1b9991e1febb9d3e5470 + sha512sums = e6b50f112b1123e0308edb0fd28a7ebaf56af006b6c20fc6fbc078f95fdf85b9f5e5f024951b7a10599cdaeaee6f47ead9647c3698615216e774976100c354e7 + sha512sums = 8cff81afac9ed702d14bfdf28cc8f5db83895360ab7b68c94aa59e260cf3a0c94597a6a083f86cd00a9b85be751a263879eca7ed25d8a91a8a0cc6c3f36a393a + +pkgname = yuna + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30c1646cadc8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Jean Lucas <jean@4ray.co> + +pkgname=yuna +pkgver=1.3.9 +pkgrel=1 +pkgdesc='Anime player integating AniList, Crunchyroll, and Hidive' +arch=(i686 x86_64) +url=https://yuna.moe +license=(AGPL3) +depends=(alsa-lib atk at-spi2-atk at-spi2-core cairo dbus gdk-pixbuf2 glib2 gtk3 hicolor-icon-theme libcups libx11 libxcb libxcomposite libxcursor libxdamage libxext libxfixes libxi libxrandr libxrender libxss libxtst nspr nss pango) +makedepends=(yarn 'nodejs>=10' python2) +options=(!strip) +source=($pkgname-$pkgver.tar.gz::https://github.com/BeeeQueue/yuna/archive/v$pkgver.tar.gz + electron-builder.patch + yuna.desktop) +sha512sums=('519f3ec59b265a757b17617e26d55a36486cbf63785386c894b5afc055ca958c96d8fbe1c08d5d3b69cfeb76dc4b7a6dd798db4c946b1b9991e1febb9d3e5470' + 'e6b50f112b1123e0308edb0fd28a7ebaf56af006b6c20fc6fbc078f95fdf85b9f5e5f024951b7a10599cdaeaee6f47ead9647c3698615216e774976100c354e7' + '8cff81afac9ed702d14bfdf28cc8f5db83895360ab7b68c94aa59e260cf3a0c94597a6a083f86cd00a9b85be751a263879eca7ed25d8a91a8a0cc6c3f36a393a') + +prepare() { + cd $pkgname-$pkgver + # Tell Electron Builder to only target a directory build + patch -Np1 < ../electron-builder.patch +} + +build() { + cd $pkgname-$pkgver + yarn + yarn build +} + +package() { + install -Dm 644 yuna.desktop -t "$pkgdir"/usr/share/applications + + cd yuna-$pkgver + + mkdir "$pkgdir"/usr/{lib,bin} + cp -a dist_electron/linux-unpacked "$pkgdir"/usr/lib/yuna + ln -s /usr/lib/yuna/yuna "$pkgdir"/usr/bin + + for i in 64 128 256 512; do + install -Dm 644 public/icons/${i}x${i}.png \ + "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/yuna.png + done + + install -Dm 644 LICENSE.md -t "$pkgdir"/usr/share/licenses/yuna +} diff --git a/electron-builder.patch b/electron-builder.patch new file mode 100644 index 000000000000..11dbe696982a --- /dev/null +++ b/electron-builder.patch @@ -0,0 +1,18 @@ +--- a/vue.config.js ++++ b/vue.config.js +@@ -2,6 +2,15 @@ + * @type { ProjectOptions } + */ + module.exports = { ++ pluginOptions: { ++ electronBuilder: { ++ builderOptions: { ++ linux: { ++ target: 'dir' ++ } ++ } ++ } ++ }, + css: { + sourceMap: true, + }, diff --git a/yuna.desktop b/yuna.desktop new file mode 100644 index 000000000000..67d9c54872dc --- /dev/null +++ b/yuna.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Name=Yuna +Comment=Anime player integating AniList, Crunchyroll, and Hidive +Exec=yuna +Icon=yuna +Categories=Network;Player; +Terminal=false |