summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaffle2020-04-06 00:28:38 +0300
committerWaffle2020-04-06 00:37:48 +0300
commitb2f2c8865d019c54f5a6582e6f7aad7742d841db (patch)
tree3952d1cc53429e255bcbc18fbf7b0b4c76338cea
downloadaur-b2f2c8865d019c54f5a6582e6f7aad7742d841db.tar.gz
Initial commit
-rw-r--r--.SRCINFO19
-rw-r--r--0001-Change-instalation-path-to-be-Arch-linux-friendly.patch30
-rw-r--r--PKGBUILD47
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..61e6e590ec2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = anilibria-winmaclinux-git
+ pkgdesc = AniLibria client for major desktop platforms
+ pkgver = r34.566e0f3
+ pkgrel = 1
+ url = https://github.com/anilibria/anilibria-winmaclinux
+ arch = x86_64
+ license = GPL3
+ makedepends = qt5-base
+ makedepends = git
+ depends = qt5-webview
+ provides = anilibria-winmaclinux
+ conflicts = anilibria-winmaclinux
+ source = git+https://github.com/anilibria/anilibria-winmaclinux.git#commit=566e0f388f8f098aea9651972d786074a5c6e703
+ source = 0001-Change-instalation-path-to-be-Arch-linux-friendly.patch
+ md5sums = SKIP
+ md5sums = 90c273d473ea81ecba60f5c31a2db94f
+
+pkgname = anilibria-winmaclinux-git
+
diff --git a/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch b/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch
new file mode 100644
index 00000000000..81d2f75db3e
--- /dev/null
+++ b/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch
@@ -0,0 +1,30 @@
+From 2f48c641b66424a4614c10cad486aef13f1b30d3 Mon Sep 17 00:00:00 2001
+From: Waffle <waffle.lapkin@gmail.com>
+Date: Sun, 5 Apr 2020 23:34:32 +0300
+Subject: [PATCH] Change instalation path to be Arch linux friendly
+
+---
+ src/AniLibria.pro | 7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+diff --git a/src/AniLibria.pro b/src/AniLibria.pro
+index 546abff..a856440 100644
+--- a/src/AniLibria.pro
++++ b/src/AniLibria.pro
+@@ -42,10 +42,9 @@ QML_IMPORT_PATH =
+ # Additional import path used to resolve QML modules just for Qt Quick Designer
+ QML_DESIGNER_IMPORT_PATH =
+
+-# Default rules for deployment.
+-qnx: target.path = /tmp/$${TARGET}/bin
+-else: unix:!android: target.path = /opt/$${TARGET}/bin
+-!isEmpty(target.path): INSTALLS += target
++# Arch linux common instalation path
++target.path = /usr/bin
++INSTALLS += target
+
+ HEADERS += \
+ Classes/Models/changesmodel.h \
+--
+2.26.0
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ac3f00bb9a7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: Waffle Lapkin <waffle.lapkin@gmail.com>
+pkgname='anilibria-winmaclinux-git'
+pkgver=r34.566e0f3
+pkgrel=1
+pkgdesc='AniLibria client for major desktop platforms'
+arch=('x86_64')
+url='https://github.com/anilibria/anilibria-winmaclinux'
+license=('GPL3')
+groups=()
+depends=(qt5-webview)
+makedepends=('qt5-base' 'git')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/anilibria/anilibria-winmaclinux.git#commit=566e0f388f8f098aea9651972d786074a5c6e703'
+ '0001-Change-instalation-path-to-be-Arch-linux-friendly.patch')
+md5sums=('SKIP'
+ '90c273d473ea81ecba60f5c31a2db94f')
+
+pkgver() {
+ cd "${pkgname%-git}"
+
+ # Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+ patch -p1 -i "$srcdir/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}/src"
+ #./autogen.sh
+ #./configure --prefix=/usr
+ qmake PREFIX=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/${pkgname%-git}/src"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}/src"
+ INSTALL_ROOT="$pkgdir/" make DESTDIR="$pkgdir/" install
+}