Skip to content

Commit

Permalink
use saber-bin instead of saber-appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
zxp19821005 committed Sep 20, 2023
1 parent f013600 commit 3ab4560
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@
|**rubick**|[rubick-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/rubick-bin)|[rubick-bin](https://aur.archlinux.org/packages/rubick-bin)||
|**s5cmd**|[s5cmd-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/s5cmd-bin)|[s5cmd-bin](https://aur.archlinux.org/packages/s5cmd-bin)||
|**sabaki**|[sabaki-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/sabaki-bin)|[sabaki-bin](https://aur.archlinux.org/packages/sabaki-bin)||
|**saber**|[saber-appimage](https://github.com/zxp19821005/My_AUR_Files/tree/main/saber-appimage)|[saber-appimage](https://aur.archlinux.org/packages/saber-appimage)||
|**saber**|[saber-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/saber-bin)|[saber-bin](https://aur.archlinux.org/packages/saber-bin)||
|**saberfy**|[saberfy](https://github.com/zxp19821005/My_AUR_Files/tree/main/saberfy)|[saberfy](https://aur.archlinux.org/packages/saberfy)||
|**salesforce2sql**|[salesforce2sql-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/salesforce2sql-bin)|[salesforce2sql-bin](https://aur.archlinux.org/packages/salesforce2sql-bin)||
|**sbe**|[sbe-bin](https://github.com/zxp19821005/My_AUR_Files/tree/main/sbe-bin)|[sbe-bin](https://aur.archlinux.org/packages/sbe-bin)||
Expand Down
31 changes: 0 additions & 31 deletions saber-appimage/PKGBUILD

This file was deleted.

33 changes: 33 additions & 0 deletions saber-bin/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname=saber-bin
_appname="com.adilhanney.${pkgname%-bin}"
_pkgname=Saber
pkgver=0.15.5
pkgrel=1
pkgdesc="A (work-in-progress) cross-platform libre handwritten notes app"
arch=('aarch64' 'x86_64')
url="https://github.com/adil192/saber"
license=('GPL3')
provides=("${pkgname%-bin}=${pkgver}")
conflicts=("${pkgname%-bin}")
depends=('glibc' 'gcc-libs' 'at-spi2-core' 'pango' 'glib2' 'gtk3' 'libepoxy' 'libsecret' 'gdk-pixbuf2' 'harfbuzz' 'fontconfig' 'cairo')
options=('!strip')
noextract=("${pkgname%-bin}-${pkgver}-${CARCH}.tar.gz")
source_aarch64=("${pkgname%-bin}-${pkgver}-aarch64.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_Linux_arm64.tar.gz")
source_x86_64=("${pkgname%-bin}-${pkgver}-x86_64.tar.gz::${url}/releases/download/v${pkgver}/${_pkgname}_v${pkgver}_Linux_x86_64.tar.gz")
sha256sums_aarch64=('ff5cadc94e42e1a9ed3680f05d394e35ee60a89322fef76566e9534c83744234')
sha256sums_x86_64=('ac9c67302711ccd94d626148af29c0ef43e3be4ce2a70fbe35fc0d4a4c8049cf')
build() {
mkdir -p "${srcdir}/opt/${pkgname%-bin}"
bsdtar -xf "${srcdir}/${pkgname%-bin}-${pkgver}-${CARCH}.tar.gz" -C "${srcdir}/opt/${pkgname%-bin}"
rm -rf "${srcdir}/opt/${pkgname%-bin}/usr"
sed "s|${_appname}|${pkgname%-bin}|g" -i "${srcdir}/opt/${pkgname%-bin}/share/applications/${_appname}.desktop"
}
package() {
install -Dm755 -d "${pkgdir}/"{usr/bin,opt}
cp -r "${srcdir}/opt/${pkgname%-bin}" "${pkgdir}/opt"
ln -sf "/opt/${pkgname%-bin}/${pkgname%-bin}" "${pkgdir}/usr/bin/${pkgname%-bin}"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/share/icons/hicolor/512x512/apps/${_appname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/share/applications/${_appname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
install -Dm644 "${srcdir}/opt/${pkgname%-bin}/share/metainfo/${_appname}.metainfo.xml" "${pkgdir}/usr/share/metainfo/${pkgname%-bin}.metainfo.xml"
}

0 comments on commit 3ab4560

Please sign in to comment.