summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhanghua0002021-10-07 15:57:14 +0800
committerzhanghua0002021-10-07 15:57:14 +0800
commitcc26c14d0f5a605c0131a13f07d62c219eca7fbf (patch)
treeb698b0413907eaa1bd0f5b3d4ada7e017d1fa703
downloadaur-cc26c14d0f5a605c0131a13f07d62c219eca7fbf.tar.gz
First release
-rw-r--r--.SRCINFO25
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD49
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..35ed98770dc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = icalingua-git
+ pkgdesc = A Linux client for QQ and more
+ pkgver = 2.3.2_df984f9
+ pkgrel = 1
+ url = https://github.com/Icalingua/Icalingua
+ arch = aarch64
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = yarn
+ makedepends = git
+ depends = ffmpeg
+ depends = electron
+ depends = libappindicator-gtk3
+ optdepends = mongodb-bin: Provides storage
+ optdepends = redis: Provides storage
+ provides = electron-qq
+ provides = icalingua
+ conflicts = electron-qq
+ conflicts = icalingua
+ replaces = electron-qq
+ source = git+https://github.com/Icalingua/Icalingua
+ sha256sums = SKIP
+
+pkgname = icalingua-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..53a01dea026
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+pkg
+src
+*.pkg.tar.*
+Icalingua
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..156de333e3d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+pkgname=icalingua-git
+pkgver=2.3.2_df984f9
+pkgrel=1
+pkgdesc='A Linux client for QQ and more'
+license=('GPL')
+depends=('ffmpeg' 'electron' 'libappindicator-gtk3')
+makedepends=('yarn' 'git')
+optdepends=('mongodb-bin: Provides storage'
+ 'redis: Provides storage')
+arch=('aarch64' 'x86_64' 'i686')
+url="https://github.com/Icalingua/Icalingua"
+provides=('electron-qq' 'icalingua')
+conflicts=('electron-qq' 'icalingua')
+replaces=('electron-qq')
+source=("git+${url}")
+sha256sums=('SKIP')
+
+pkgver(){
+ cd "${srcdir}/Icalingua"
+ echo "$(git describe --tags | sed "s/v//")_$(git rev-parse --short HEAD)"
+}
+prepare(){
+ cd "${srcdir}/Icalingua/icalingua"
+ yarn install
+}
+build(){
+ cd "${srcdir}/Icalingua/icalingua"
+ yarn run build:dir
+}
+package(){
+ case ${CARCH} in
+ "x86_64")
+ _arch="-";;
+ "aarch64")
+ _arch="-arm64-";;
+ "i686")
+ _arch="-ia32-";;
+ "*")
+ _arch="-${CARCH}-";;
+ esac
+ mkdir -p "${pkgdir}/opt/icalingua"
+ mkdir -p "${pkgdir}/usr/bin"
+ cd "${srcdir}/Icalingua/icalingua"
+ cp -a build/linux${_arch}unpacked/* "${pkgdir}/opt/icalingua"
+ cd "${srcdir}/Icalingua/pkgres"
+ install -Dm644 512x512.png "${pkgdir}/usr/share/icons/hicolor/512x512/apps/icalingua.png"
+ install -Dm644 icalingua.desktop "${pkgdir}/usr/share/applications/icalingua.desktop"
+ ln -s "/opt/icalingua/icalingua" "${pkgdir}/usr/bin/icalingua"
+}