diff options
author | Kirill Viks | 2021-10-01 16:48:07 +0300 |
---|---|---|
committer | Kirill Viks | 2021-10-01 16:48:07 +0300 |
commit | 99d9dac40db05dee47fb3ec884e9ce124e722357 (patch) | |
tree | 1f3de3be79ff6027ada356383ccb26237f2e465b | |
download | aur-99d9dac40db05dee47fb3ec884e9ce124e722357.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 28 | ||||
-rw-r--r-- | 0001-Change-instalation-path-to-be-Arch-linux-friendly.patch | 34 | ||||
-rw-r--r-- | 0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch | 26 | ||||
-rw-r--r-- | 0001-disable-version-check.patch | 25 | ||||
-rw-r--r-- | PKGBUILD | 43 |
5 files changed, 156 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..55e42c93dfed --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,28 @@ +pkgbase = anilibria-winmaclinux + pkgdesc = AniLibria client for major desktop platforms (stable) + pkgver = 1.0.3 + pkgrel = 1 + url = https://github.com/anilibria/anilibria-winmaclinux + arch = x86_64 + license = GPL3 + makedepends = qt5-base + makedepends = qt5-multimedia + makedepends = qt5-svg + depends = qt5-webview + depends = gst-libav + depends = qt5-quickcontrols2 + depends = qt5-graphicaleffects + depends = qt5-websockets + depends = qt5-quickcontrols + provides = anilibria-winmaclinux + conflicts = anilibria-winmaclinux-git + source = anilibria-winmaclinux-1.0.3.tar.gz::https://github.com/anilibria/anilibria-winmaclinux/archive/refs/tags/1.0.3.tar.gz + source = 0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch + source = 0001-Change-instalation-path-to-be-Arch-linux-friendly.patch + source = 0001-disable-version-check.patch + sha256sums = a86831098b884530eec4b6d6e91abf00d77e0d45f5c8991f6bfe015b83b8741d + sha256sums = 31185f54427a0b14a4992672477fe2ae79aefd408c92ded1f3730bed55af4649 + sha256sums = 9d700ba5a449b1ec7e9403d61aaf334e30bc6499c412f2bdcc9bd862e7ad2ca4 + sha256sums = 4099873fd5e3276a3a59d56d035aecae67fb6cc4ce6ea64aec90c1149dc657c9 + +pkgname = anilibria-winmaclinux 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 000000000000..49a2132f7889 --- /dev/null +++ b/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch @@ -0,0 +1,34 @@ +From 74a4dbfd9950a2713327cb5ea1de4bdeec8cabaf Mon Sep 17 00:00:00 2001 +From: Waffle <waffle.lapkin@gmail.com> +Date: Tue, 19 May 2020 11:17:13 +0300 +Subject: [PATCH] Change instalation path to be Arch linux friendly + +--- + src/AniLibria.pro | 11 +++-------- + 1 file changed, 3 insertions(+), 8 deletions(-) + +diff --git a/src/AniLibria.pro b/src/AniLibria.pro +index 58fdddf..33da0f8 100644 +--- a/src/AniLibria.pro ++++ b/src/AniLibria.pro +@@ -92,14 +92,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) { +- unix: INSTALLS += target desktop $${UNIX_ICONS} +- else:macx: INSTALLS += target +-} ++# Arch linux common instalation path ++target.path = /usr/bin ++INSTALLS += target desktop $${UNIX_ICONS} + + HEADERS += \ + Classes/Models/changesmodel.h \ +-- +2.26.2 + diff --git a/0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch b/0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch new file mode 100644 index 000000000000..e8018db9b24e --- /dev/null +++ b/0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch @@ -0,0 +1,26 @@ +From 2cc483c48645141294b29638f785a61923a805ca Mon Sep 17 00:00:00 2001 +From: Waffle <waffle.lapkin@gmail.com> +Date: Tue, 19 May 2020 11:02:51 +0300 +Subject: [PATCH] change `Exec` value in `.desktop` file to match archlinux + installation path + +--- + data/anilibria.desktop | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/data/anilibria.desktop b/data/anilibria.desktop +index 3dfcc73..04c92a5 100644 +--- a/data/anilibria.desktop ++++ b/data/anilibria.desktop +@@ -1,7 +1,7 @@ + [Desktop Entry] + Name=AniLibria + Comment=AniLibria desktop client +-Exec=/opt/AniLibria/bin/AniLibria ++Exec=/usr/bin/AniLibria + Icon=anilibria + Type=Application + Version=0.1.2 +-- +2.26.2 + diff --git a/0001-disable-version-check.patch b/0001-disable-version-check.patch new file mode 100644 index 000000000000..ecfc00dbeab2 --- /dev/null +++ b/0001-disable-version-check.patch @@ -0,0 +1,25 @@ +From 91dd65091b366be551717b93cdd1065b19d473ba Mon Sep 17 00:00:00 2001 +From: Waffle <waffle.lapkin@gmail.com> +Date: Sun, 26 Apr 2020 17:58:23 +0300 +Subject: [PATCH] disable version check + +--- + src/AniLibria.pro | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/AniLibria.pro b/src/AniLibria.pro +index 9182baa..42ed62a 100644 +--- a/src/AniLibria.pro ++++ b/src/AniLibria.pro +@@ -12,7 +12,7 @@ windows { + DEFINES += QT_DEPRECATED_WARNINGS + + # If you need not check version remove or comment this line +-DEFINES += USE_VERSION_CHECK ++#DEFINES += USE_VERSION_CHECK + + # You can also make your code fail to compile if it uses deprecated APIs. + # In order to do so, uncomment the following line. +-- +2.26.2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..26e547639328 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,43 @@ +# Maintainer: Waffle Lapkin <waffle.lapkin@gmail.com> +pkgname='anilibria-winmaclinux' +pkgver=1.0.3 +pkgrel=1 +pkgdesc='AniLibria client for major desktop platforms (stable)' +arch=('x86_64') +url='https://github.com/anilibria/anilibria-winmaclinux' +license=('GPL3') +depends=('qt5-webview' 'gst-libav' 'qt5-quickcontrols2' 'qt5-graphicaleffects' 'qt5-websockets' 'qt5-quickcontrols') +makedepends=('qt5-base' 'qt5-multimedia' 'qt5-svg') +provides=("$pkgname") +conflicts=("$pkgname-git") +source=("$pkgname-$pkgver.tar.gz::https://github.com/anilibria/anilibria-winmaclinux/archive/refs/tags/$pkgver.tar.gz" + "0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch" + "0001-Change-instalation-path-to-be-Arch-linux-friendly.patch" + "0001-disable-version-check.patch") +sha256sums=('a86831098b884530eec4b6d6e91abf00d77e0d45f5c8991f6bfe015b83b8741d' + '31185f54427a0b14a4992672477fe2ae79aefd408c92ded1f3730bed55af4649' + '9d700ba5a449b1ec7e9403d61aaf334e30bc6499c412f2bdcc9bd862e7ad2ca4' + '4099873fd5e3276a3a59d56d035aecae67fb6cc4ce6ea64aec90c1149dc657c9') + +prepare() { + cd "$pkgname-$pkgver" + patch -p1 -i "$srcdir/0001-change-Exec-value-in-.desktop-file-to-match-archlinu.patch" + patch -p1 -i "$srcdir/0001-Change-instalation-path-to-be-Arch-linux-friendly.patch" + patch -p1 -i "$srcdir/0001-disable-version-check.patch" +} + +build() { + cd "$pkgname-$pkgver/src" + qmake PREFIX=/usr + make -j$(nproc) +} + +check() { + cd "$pkgname-$pkgver/src" + make -k check +} + +package() { + cd "$pkgname-$pkgver/src" + make DESTDIR="$pkgdir/" install +} |