summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authormaz-12015-10-06 02:08:32 +0800
committermaz-12015-10-06 02:08:32 +0800
commit5e8ad272931c7d9505d26b788f3d206b3541e21b (patch)
tree3186d523043b4914326e66d2a1ad8c81abf378df
downloadaur-5e8ad272931c7d9505d26b788f3d206b3541e21b.tar.gz
add niconvert-git
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD30
-rwxr-xr-xniconvert.desktop13
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..62f0d584f5e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = niconvert-git
+ pkgdesc = Danmaku download and convert tool.
+ pkgver = 86.dbc3bc1
+ pkgrel = 1
+ url = https://github.com/muzuiget/niconvert
+ arch = i686
+ arch = x86_64
+ license = GPL3
+ depends = python3
+ depends = tk
+ source = git://github.com/muzuiget/niconvert.git
+ source = niconvert.desktop
+ md5sums = SKIP
+ md5sums = SKIP
+
+pkgname = niconvert-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..96c92c46864
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: maz-1 <loveayawaka at gmail dot com>
+_pkgname=niconvert
+pkgname=${_pkgname}-git
+pkgver=86.dbc3bc1
+pkgrel=1
+pkgdesc="Danmaku download and convert tool."
+arch=('i686' 'x86_64')
+url="https://github.com/muzuiget/niconvert"
+license=('GPL3')
+depends=('python3' 'tk')
+source=("git://github.com/muzuiget/niconvert.git"
+ "niconvert.desktop")
+md5sums=('SKIP'
+ 'SKIP')
+
+_gitname=$_pkgname
+pkgver() {
+ cd "$srcdir/$_gitname"
+ echo "$(git rev-list --count HEAD).$(git describe --always)"
+}
+
+package() {
+ install -dm 755 ${pkgdir}/usr/{bin,share/niconvert}
+ cd $srcdir/$_gitname
+ cp -r ./* ${pkgdir}/usr/share/niconvert
+ echo '#!/bin/sh' >> ${pkgdir}/usr/bin/niconvert
+ echo 'exec python3 /usr/share/niconvert/niconvert.pyw "$@"' >> ${pkgdir}/usr/bin/niconvert
+ chmod +x ${pkgdir}/usr/bin/niconvert
+ install -Dm 644 ${srcdir}/niconvert.desktop ${pkgdir}/usr/share/applications/niconvert.desktop
+}
diff --git a/niconvert.desktop b/niconvert.desktop
new file mode 100755
index 00000000000..1b74df39d72
--- /dev/null
+++ b/niconvert.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Categories=AudioVideo;AudioVideoEditing;
+Comment[zh_CN]=弹幕转换器
+Comment=DanMoKu Converter
+Exec=python3 /usr/share/niconvert/niconvert.pyw tk %U
+GenericName[zh_CN]=Niconvert
+GenericName=Niconvert
+Icon=/usr/share/niconvert/niconvert/assets/logo.svg
+Name[zh_CN]=Niconvert
+Name=Niconvert
+StartupNotify=false
+Terminal=false
+Type=Application \ No newline at end of file