summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorNaoki Kanazawa2018-01-09 14:59:10 +0900
committerNaoki Kanazawa2018-01-09 14:59:10 +0900
commitd2cd0862d931d4076cb8f2b12f66cf083756f8a8 (patch)
tree43bd65ab6e130c512c56dd3bc4b317dad2b88285 /PKGBUILD
downloadaur-d2cd0862d931d4076cb8f2b12f66cf083756f8a8.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ab9ec4638b2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Naoki Kanazawa <nk dot naoki912 at gmail dot com>
+pkgname=toa
+pkgver=0.0.1
+pkgrel=1
+pkgdesc='"toa" is simple music player made by Electron.'
+arch=('any')
+url='https://github.com/yuki540net/toa'
+license=('MIT')
+depends=('gtk2' 'gconf' 'xdg-utils' 'libxtst' 'libxss' 'nss' 'alsa-lib' 'xdg-utils')
+makedepends=('gendesk')
+source=(
+ "${url}/releases/download/v${pkgver}/-linux-x64.zip"
+)
+md5sums=(
+ '99cd3e38d68ab0949ebd4cc08d63f304'
+)
+
+prepare() {
+ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
+}
+
+package() {
+ install -dm755 ${pkgdir}/usr/bin
+ install -dm755 ${pkgdir}/usr/lib
+
+ cp -a ${srcdir}/兎亜-linux-x64 ${pkgdir}/usr/lib/${pkgname}
+
+ ln -s /usr/lib/toa/兎亜 ${pkgdir}/usr/bin/toa
+
+ install -Dm644 "$srcdir/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
+}