diff options
author | zhanghua000 | 2021-05-27 17:17:57 +0800 |
---|---|---|
committer | zhanghua000 | 2021-05-27 17:17:57 +0800 |
commit | 5b81d643b4b603554fe383d29d9237601849a69a (patch) | |
tree | 0410eb2ea9abfd352bcb69fec00f19f12d31ce8b | |
download | aur-5b81d643b4b603554fe383d29d9237601849a69a.tar.gz |
First Upload
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 52 |
3 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e661cd586344 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = lx-music-desktop-git + pkgdesc = 一个免费的音乐查找助手 + pkgver = 1.10.2_c538e9c + pkgrel = 1 + url = https://github.com/lyswhut/lx-music-desktop + arch = x86_64 + arch = aarch64 + arch = armv7l + makedepends = npm + makedepends = nodejs>=14 + makedepends = jq + depends = c-ares + depends = ffmpeg + depends = gtk3 + depends = http-parser + depends = libevent + depends = libvpx + depends = libxslt + depends = libxss + depends = minizip + depends = nss + depends = re2 + depends = snappy + depends = libnotify + depends = libappindicator-gtk3 + conflicts = lx-music-desktop + source = lx-music-desktop-git::git+https://github.com/lyswhut/lx-music-desktop + sha256sums = SKIP + +pkgname = lx-music-desktop-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e24fceadf527 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg +src +lx-music-desktop* +*.pkg.tar.* + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e977582e7ce4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer zhanghua <zhanghua.00@qq.com> +# Contributor lyswhut <lyswhut@qq.com> + +pkgname=lx-music-desktop-git +pkgdesc=一个免费的音乐查找助手 +pkgver=1.10.2_c538e9c +pkgrel=1 +arch=(x86_64 aarch64 armv7l) +url=https://github.com/lyswhut/lx-music-desktop +licence=(Apache) +conflicts=('lx-music-desktop') +depends=('c-ares' 'ffmpeg' 'gtk3' 'http-parser' 'libevent' 'libvpx' 'libxslt' 'libxss' 'minizip' 'nss' 're2' 'snappy' 'libnotify' 'libappindicator-gtk3') +makedepends=('npm' 'nodejs>=14' 'jq') +source=(${pkgname}::git+https://github.com/lyswhut/lx-music-desktop) +sha256sums=(SKIP) + +pkgver(){ + cd ${srcdir}/${pkgname} + echo $(jq -r .version package.json)_$(git rev-parse --short HEAD) +} +prepare(){ + cd ${srcdir}/${pkgname} + npm install +} +build(){ + cd ${srcdir}/${pkgname} + npm run pack:dir +} +package(){ + echo "const os = require('os'); console.log(os.arch());" > get-arch.js + _arch=$(node get-arch.js) + cd ${srcdir}/${pkgname}/build/linux-${_arch}-unpacked + mkdir -p ${pkgdir}/opt/${pkgname//-git/} + cp -r * ${pkgdir}/opt/${pkgname//-git/} + mkdir -p ${pkgdir}/usr/bin + ln -s /opt/${pkgname//-git/}/lx-music-desktop ${pkgdir}/usr/bin/lx-music-desktop + mkdir -p ${pkgdir}/usr/share/applications + cat > ${pkgdir}/usr/share/applications/${pkgname//-git/}.desktop << "EOF" +[Desktop Entry] +Name=Luo Xue Music Helper +Name[zh_CN]=洛雪音乐助手 +Comment=A free music search helper +Comment[zh_CN]=一个免费的音乐查找助手 +Type=Application +Exec=lx-music-desktop +Icon=lx-music-desktop.png +Terminal=false +Categories=Utility;AudioVideo;Audio;Player;Music; +EOF + mkdir -p ${pkgdir}/usr/share/pixmaps + cp ${srcdir}/${pkgname}/resources/icons/512x512.png ${pkgdir}/usr/share/pixmaps/${pkgname//-git/}.png +} |