summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052024-11-05 13:50:16 +0800
committerzxp198210052024-11-05 13:50:16 +0800
commit551e565cef88ace46a89c44073aaf7848da7c803 (patch)
tree3c8be9faf999c5f953e532f7343e2683b9e9a896 /PKGBUILD
downloadaur-551e565cef88ace46a89c44073aaf7848da7c803.tar.gz
update to 2.4.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e2e1f09863c8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
+pkgname=zebar-bin
+_pkgname=Zebar
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="A tool for creating customizable and cross-platform taskbars, desktop widgets, and popups.(Prebuilt version)"
+arch=('x86_64')
+url="https://github.com/glzr-io/zebar"
+license=('GPL-3.0-only')
+provides=("${pkgname%-bin}=${pkgver}")
+conflicts=("${pkgname%-bin}")
+depends=(
+ 'gtk3'
+ 'gdk-pixbuf2'
+ 'webkit2gtk-4.1'
+ 'nodejs'
+)
+source=(
+ "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}/${pkgname%-bin}-v${pkgver}-opt4-x64.deb"
+)
+sha256sums=('6dcfbdac04bac7493d7107c11e5b27154522edacc05e4134dd7be2152c4ce0ae')
+build() {
+ bsdtar -xf "${srcdir}/data."*
+}
+package() {
+ install -Dm755 "${srcdir}/usr/bin/${pkgname%-bin}" -t "${pkgdir}/usr/bin"
+ cp -Pr --no-preserve=ownership "${srcdir}/usr/lib" -t "${pkgdir}/usr"
+ _icon_sizes=(32x32 128x128 256x256@2)
+ for _icons in "${_icon_sizes[@]}";do
+ install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \
+ -t "${pkgdir}/usr/share/icons/hicolor/${_icons//@2/}/apps"
+ done
+ install -Dm644 "${srcdir}/usr/share/applications/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
+} \ No newline at end of file