summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 571728c32a333e20359743483133ed893c888905 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: huochenghai <huochenghai@gmail.com>
_basepkgname="syncclipboard"
pkgname=${_basepkgname}-desktop-bin
pkgver="0.7.7"
pkgrel=1
pkgdesc="跨平台剪贴板同步方案的客户端 / Client of Cross-Platform Cipboard Syncing Solution"
arch=("x86_64")
url="https://github.com/Jeric-X/SyncClipboard"
_githuburl="https://github.com/Jeric-X/SyncClipboard.Desktop"
depends=(glibc libxt libx11 fontconfig zlib libxtst gcc-libs libxinerama)
provides=("SyncClipboard.Desktop-${pkgver}")
conflicts=("${pkgname}" "${_basepkgname}" "${_basepkgname}-bin" "SyncClipboard.Desktop")
license=("MIT")
source=("${pkgname}-${pkgver}.AppImage::${_githuburl}/releases/download/v${pkgver}/SyncClipboard-${pkgver}_linux_self-contained.$CARCH.AppImage"
    'LICENSE::https://raw.githubusercontent.com/Jeric-X/SyncClipboard/master/LICENSE')
sha256sums=('3d62a8da5de5db9f1a63b31fba5db4c91487cbf754ec57ca8af5a086ac6af86c'
    'dfa38ed49c5407a5d8685c935703eb0bf8233db9f8c40700fd9059aff2a7e22f')

package() {
    chmod 755 ./${pkgname}-${pkgver}.AppImage
    ./${pkgname}-${pkgver}.AppImage --appimage-extract
    install -Dm644 "${srcdir}/squashfs-root/xyz.jericx.desktop.syncclipboard.desktop" -t "${pkgdir}/usr/share/applications"
    install -d "${pkgdir}/usr/bin"
    install -d "${pkgdir}/opt"
    cp -avR squashfs-root/ "${pkgdir}/opt/${pkgname}"
    ln -s /opt/${pkgname}/AppRun "${pkgdir}/usr/bin/SyncClipboard.Desktop.Default"
    find "${pkgdir}/opt/${pkgname}" -type d -exec chmod 755 {} +
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}