summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWinston Wu2017-10-24 01:55:18 +0000
committerWinston Wu2017-10-24 01:55:18 +0000
commite11409eee4752575d49841dc0956543259339b34 (patch)
tree831f23d2306601bd1615b5328ba13d9eddeac42b
downloadaur-e11409eee4752575d49841dc0956543259339b34.tar.gz
Initial commit
-rw-r--r--.SRCINFO32
-rw-r--r--PKGBUILD56
-rw-r--r--iease-music.desktop10
-rwxr-xr-xiease-music.sh7
4 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0a2742b2c3c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,32 @@
+# Generated by mksrcinfo v8
+# Tue Oct 24 01:55:02 UTC 2017
+pkgbase = iease-music-git
+ pkgdesc = A lean snippet manager based on GitHub Gist
+ pkgver = 171.026f721
+ pkgrel = 1
+ url = https://github.com/trazyn/ieaseMusic
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = npm
+ depends = electron
+ depends = nodejs
+ depends = libxtst
+ depends = gtk2
+ depends = gconf
+ depends = libxss
+ depends = nss
+ depends = python
+ depends = alsa-lib
+ depends = java-environment
+ provides = iease-music
+ conflicts = iease-music
+ source = iease-music::git://github.com/trazyn/ieaseMusic.git
+ source = iease-music.desktop
+ source = iease-music.sh
+ sha256sums = SKIP
+ sha256sums = aab1d991e8231ef751ccdc073c32be70ba13721008ff147b6fd2f6dee97d6645
+ sha256sums = 903d9fc1e891b09ef7a6e2d997ff597e00587c70f3cdaf2ee0508dfe9385692c
+
+pkgname = iease-music-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..263c0bee55c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Contributor: wenLiangcan <boxeed at gmail dot com>
+# Maintainer: hexchain <i at hexchain.org>
+
+pkgname=iease-music-git
+_pkgname=iease-music
+pkgver=171.026f721
+pkgrel=1
+pkgdesc="A lean snippet manager based on GitHub Gist"
+arch=('x86_64')
+url="https://github.com/trazyn/ieaseMusic"
+license=('MIT')
+depends=('electron' 'nodejs' 'libxtst' 'gtk2' 'gconf' 'libxss' 'nss' 'python' 'alsa-lib' 'java-environment')
+makedepends=('git' 'npm')
+provides=('iease-music')
+conflicts=('iease-music')
+source=(
+ "$_pkgname::git://github.com/trazyn/ieaseMusic.git"
+ 'iease-music.desktop'
+ 'iease-music.sh'
+)
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ sed -i 's/^.*"electron".*$//;s/^.*"electron-builder".*$//' package.json
+ npm install
+}
+
+package() {
+ cd "$srcdir"
+ install -Dm644 $_pkgname.desktop -t "$pkgdir/usr/share/applications/"
+
+ cd "$srcdir/$_pkgname"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+
+ for size in 16 24 32 48 64 96 128 256; do
+ target="$pkgdir/usr/share/icons/hicolor/${size}x${size}/apps/"
+ mkdir -p $target
+ install -Dm644 "resource/${size}x${size}.png" "$target/$_pkgname.png"
+ done
+
+ cd "$srcdir/$_pkgname/"
+ mkdir -p "$pkgdir/opt/ieaseMusic/"
+ cp -r --no-preserve='ownership' -- * "$pkgdir/opt/ieaseMusic/"
+ install -Dm755 "$srcdir/$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
+}
+
+sha256sums=('SKIP'
+ 'aab1d991e8231ef751ccdc073c32be70ba13721008ff147b6fd2f6dee97d6645'
+ '903d9fc1e891b09ef7a6e2d997ff597e00587c70f3cdaf2ee0508dfe9385692c')
+
diff --git a/iease-music.desktop b/iease-music.desktop
new file mode 100644
index 00000000000..42dd00dd014
--- /dev/null
+++ b/iease-music.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Name=ieaseMusic
+Comment=Best netease music player
+Exec=/usr/bin/iease-music
+Icon=iease-music
+Categories=AudioVideo;Player;
+Terminal=false
+StartupNotify=true
+Name[en_US]=iease-music
diff --git a/iease-music.sh b/iease-music.sh
new file mode 100755
index 00000000000..704b1eef4b0
--- /dev/null
+++ b/iease-music.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+PACKAGE_NAME="ieaseMusic"
+EW_DIR="/opt/$PACKAGE_NAME"
+
+cd "$EW_DIR" || exit 1
+exec electron . "$@"