summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Palenzuela2019-08-19 12:38:52 +0200
committerManuel Palenzuela2019-08-19 12:38:52 +0200
commit4cb00e2723d6494dd0b6bc3ae64c36c25573afa1 (patch)
tree4216538cfc6ddd252aaacc61f1e231a0cf066df5
downloadaur-4cb00e2723d6494dd0b6bc3ae64c36c25573afa1.tar.gz
Initial Commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD40
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f5b2baeb09b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = 9anime
+ pkgdesc = 9anime electron client
+ pkgver = 0.r1.ea7016b
+ pkgrel = 1
+ arch = any
+ license = MIT
+ makedepends = nodejs-nativefier
+ provides = 9anime
+ source = git+https://github.com/Baitinq/9anime-client.git
+ md5sums = SKIP
+ sha1sums = SKIP
+ sha256sums = SKIP
+
+pkgname = 9anime
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7ec6d4932ea
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Manuel Palenzuela <sadshinobi@protonmail.com>
+
+author=Baitinq
+pkgname=9anime
+_gitname=9anime-client
+pkgver=0.r1.ea7016b
+pkgrel=1
+pkgdesc='9anime electron client'
+arch=('any')
+license=('MIT')
+makedepends=('nodejs-nativefier')
+provides=('9anime')
+
+source=("git+https://github.com/$author/$_gitname.git")
+
+md5sums=('SKIP')
+sha1sums=('SKIP')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_gitname"
+ printf '0.r%s.%s' \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_gitname"
+ chmod +x 9-anime
+ mv 9-anime 9anime
+}
+
+package() {
+ cd "$srcdir/$_gitname"
+ mkdir -p "$pkgdir/usr/share/$pkgname"
+ cp -a --no-preserve=ownership * "$pkgdir/usr/share/$pkgname"
+ mkdir -p "$pkgdir/usr/bin/"
+ touch "$pkgdir/usr/bin/$pkgname"
+ chmod +x "$pkgdir/usr/bin/$pkgname"
+ echo "exec /usr/share/$pkgname/$pkgname" > "$pkgdir/usr/bin/9anime"
+}