-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07a389e
commit 187f1d7
Showing
2 changed files
with
42 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com> | ||
pkgname="sunbible" | ||
pkgver=2.0.001beta | ||
_pkgver=2.0.001-beta | ||
pkgrel=1 | ||
pkgname=sunbible | ||
_pkgname=SunBible | ||
pkgver=2.0.001_beta | ||
pkgrel=2 | ||
pkgdesc="Bible Desktop App" | ||
arch=('any') | ||
url="https://sunbible-dev.github.io/SunBible/" | ||
_githuburl="https://github.com/SunBible-dev/SunBible" | ||
license=('MIT') | ||
conflicts=("${pkgname}" "${pkgname}-appimage") | ||
provides=("${pkgname}") | ||
conflicts=("${pkgname}") | ||
depends=('libxcomposite' 'mesa' 'libdrm' 'pango' 'hicolor-icon-theme' 'libxfixes' 'libxext' 'libcups' 'libx11' 'libxdamage' 'gcc-libs' \ | ||
'libxkbcommon' 'cairo' 'libxrandr' 'alsa-lib' 'gtk3' 'nss' 'at-spi2-core' 'nspr' 'expat' 'glibc' 'glib2' 'dbus' 'libxcb') | ||
makedepends=('yarn' 'electron' 'gendesk') | ||
source=("${pkgname}-${pkgver}.tar.gz::${_githuburl}/archive/refs/tags/${_pkgver}.tar.gz") | ||
makedepends=('yarn' 'npm' 'gendesk') | ||
source=("${pkgname}-${pkgver}.tar.gz::${_githuburl}/archive/refs/tags/${pkgver//_/-}.tar.gz") | ||
sha256sums=('20f6415de9e17d2dc39c7c61b75d1e4c0b672e538b351433bb616284fbcb074f') | ||
build() { | ||
cd "${srcdir}/SunBible-${_ pkgver}" | ||
yarn install && yarn dist | ||
cd "${srcdir}/${_pkgname}-${pkgver//_/-}" | ||
yarn install | ||
yarn AppImage | ||
} | ||
package() { | ||
install -Dm755 -d "${pkgdir}/opt/${pkgname}" | ||
cp -r "${srcdir}/SunBible-${_pkgver}/dist/linux-unpacked/"* "${pkgdir}/opt/${pkgname}" | ||
install -Dm755 -d "${pkgdir}/"{opt/"${pkgname}",usr/bin} | ||
cp -r "${srcdir}/${_pkgname}-${pkgver//_/-}/dist/linux-unpacked/"* "${pkgdir}/opt/${pkgname}" | ||
ln -sf "/opt/${pkgname}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" | ||
for _icons in 16x16 32x32 48x48 64x64 128x128 256x256;do | ||
install -Dm644 "${srcdir}/SunBible-${_pkgver}/build/icons/${_icons}.png" "${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png" | ||
install -Dm644 "${srcdir}/${_pkgname}-${pkgver//_/-}/build/icons/${_icons}.png" \ | ||
"${pkgdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname}.png" | ||
done | ||
install -Dm644 "${srcdir}/SunBible-${_pkgver}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}" | ||
gendesk -f --icon "${pkgname}" --categories "Utility" --name "SunBible" --exec "/opt/${pkgname%}/${pkgname} %U" | ||
install -Dm644 "${srcdir}/${_pkgname}-${pkgver//_/-}/LICENSE.md" -t "${pkgdir}/usr/share/licenses/${pkgname}" | ||
gendesk -f -n --categories "Utility" --name "${_pkgname}" --exec "${pkgname} --no-sandbox %U" | ||
install -Dm644 "${srcdir}/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications" | ||
} |