diff options
author | zhanghua000 | 2022-03-04 11:17:52 +0800 |
---|---|---|
committer | zhanghua000 | 2022-03-04 11:17:52 +0800 |
commit | a19d10874f3f7228062bcfc7edd3b0b31a205c3b (patch) | |
tree | b31c91118750961c120588f29b22805a1c66778d | |
download | aur-a19d10874f3f7228062bcfc7edd3b0b31a205c3b.tar.gz |
First Release
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 77 |
3 files changed, 118 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b3dd99ffc9b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,36 @@ +pkgbase = icalingua++-git + pkgdesc = A Linux client for QQ and more(fork to upgrading) + pkgver = 2.5.3.r0.g2612ba6 + pkgrel = 1 + url = https://github.com/Icalingua-plus-plus/Icalingua-plus-plus + arch = aarch64 + arch = x86_64 + arch = i686 + license = AGPL + makedepends = yarn + makedepends = git + depends = ffmpeg + 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 = Icalingua::git+https://github.com/Icalingua-plus-plus/Icalingua-plus-plus + sha256sums = SKIP + +pkgname = icalingua++-git + +pkgname = icalingua++-electron-git + pkgdesc = A Linux client for QQ and more(fork to continue upgrading) with system electron + depends = ffmpeg + depends = libappindicator-gtk3 + depends = electron13 + provides = electron-qq + provides = icalingua + provides = icalingua-electron + conflicts = electron-qq + conflicts = icalingua + conflicts = icalingua-electron diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..53a01dea0261 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +pkg +src +*.pkg.tar.* +Icalingua + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c4b0086a9f61 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,77 @@ +# Maintainer: ZhangHua <zhanghuadedn at gmail dot com> +# Maintainer: Icalinguaplusplus <https://github.com/Icalinguaplusplus> +# Contributor: Clansty <i at gao4 dot pw> + +pkgname=("icalingua++-git" "icalingua++-electron-git") +pkgver=2.5.3.r0.g2612ba6 +pkgrel=1 +pkgdesc='A Linux client for QQ and more(fork to upgrading)' +license=('AGPL') +depends=('ffmpeg' 'libappindicator-gtk3') +makedepends=('yarn' 'git') +optdepends=('mongodb-bin: Provides storage' + 'redis: Provides storage') +arch=('aarch64' 'x86_64' 'i686') +url="https://github.com/Icalingua-plus-plus/Icalingua-plus-plus" +provides=('electron-qq' 'icalingua') +conflicts=('electron-qq' 'icalingua') +replaces=('electron-qq') +source=("Icalingua::git+${url}") +sha256sums=('SKIP') + +pkgver(){ + cd "${srcdir}/Icalingua" + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g' +} +prepare(){ + cd "${srcdir}/Icalingua/icalingua" + yarn install --immutable +} +build(){ + cd "${srcdir}/Icalingua/icalingua" + yarn run build:dir +} +package_icalingua++-git(){ + 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" +} +package_icalingua++-electron-git(){ + conflicts+=("icalingua-electron") + provides+=("icalingua-electron") + depends+=('electron13') + pkgdesc='A Linux client for QQ and more(fork to continue upgrading) with system electron' + case ${CARCH} in + "x86_64") + _arch="-";; + "aarch64") + _arch="-arm64-";; + "i686") + _arch="-ia32-";; + "*") + _arch="-${CARCH}-";; + esac + mkdir -p "${pkgdir}/usr/share/icalingua" + mkdir -p "${pkgdir}/usr/bin" + cd "${srcdir}/Icalingua/icalingua/build/linux${_arch}unpacked" + install -Dm644 "resources/app.asar" "${pkgdir}/usr/lib/icalingua/icalingua.asar" + 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" + install -Dm755 icalingua "${pkgdir}/usr/bin/icalingua" +} |