xfce4_panel => 4.16.3 (#6101)

* Update xfce4_panel.rb

* Add pre-built binaries

Co-authored-by: Ed Reel <edreel@gmail.com>
This commit is contained in:
supechicken
2021-09-01 06:13:46 +08:00
committed by GitHub
parent 9c6de38263
commit 74f6606c2c

View File

@@ -3,23 +3,23 @@ require 'package'
class Xfce4_panel < Package
description 'Next generation panel for the XFCE desktop environment'
homepage 'https://xfce.org/'
version '4.16.0'
version '4.16.3'
license 'GPL-2+ and LGPL-2.1+'
compatibility 'all'
source_url "https://archive.xfce.org/src/xfce/xfce4-panel/4.16/xfce4-panel-#{version}.tar.bz2"
source_sha256 '5e979aeeb37d306d72858b1bc67448222ea7a68de01409055b846cd31f3cc53d'
source_url 'https://archive.xfce.org/src/xfce/xfce4-panel/4.16/xfce4-panel-4.16.3.tar.bz2'
source_sha256 '5934eaed8a76da52c29b734ccd79600255420333dd6ebd8fd9f066379af1e092'
binary_url ({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.0_armv7l/xfce4_panel-4.16.0-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.0_armv7l/xfce4_panel-4.16.0-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.0_i686/xfce4_panel-4.16.0-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.0_x86_64/xfce4_panel-4.16.0-chromeos-x86_64.tar.xz',
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.3_armv7l/xfce4_panel-4.16.3-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.3_armv7l/xfce4_panel-4.16.3-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.3_i686/xfce4_panel-4.16.3-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/xfce4_panel/4.16.3_x86_64/xfce4_panel-4.16.3-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '338ec0279e7da70d8748e5a434b82a52230f2f0359903e1a93488e144c8b9c1b',
armv7l: '338ec0279e7da70d8748e5a434b82a52230f2f0359903e1a93488e144c8b9c1b',
i686: 'ddcb71b0ab71cb33e90c1d0eee09aafbe3aa70d5b76c6e35a6174ecfed8489c5',
x86_64: 'a756559d9682ea4857c576af6b305c8ee29e1c8d59b9776cdf9b85de07bc7130',
aarch64: 'be479ecd57ca0a60f2ca69ea39f4a65d240dae52f72f36da7e7280dbe007768c',
armv7l: 'be479ecd57ca0a60f2ca69ea39f4a65d240dae52f72f36da7e7280dbe007768c',
i686: '34d5df943fb926b7a0a87f222163cd532f320da80e74dda59131cbd8835bd8c7',
x86_64: 'fb4ddea55c05ed590a0c0b5d6bf383197182af9be828f9324279f3d3c9c8d694',
})
depends_on 'libwnck'
@@ -29,12 +29,26 @@ class Xfce4_panel < Package
depends_on 'exo'
depends_on 'gtk3'
def self.patch
system 'filefix'
end
def self.build
system "./configure #{CREW_OPTIONS} --disable-static --enable-gio-unix --enable-gtk2"
system "make -j#{CREW_NPROC}"
system <<~BUILD
[ -x autogen.sh ] && env NOCONFIGURE='1' ./autogen.sh
env #{CREW_ENV_OPTIONS} ./configure #{CREW_OPTIONS} \
--disable-static \
--enable-gio-unix
make
BUILD
end
def self.install
system "make install DESTDIR=#{CREW_DEST_DIR}"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.postinstall
system 'gtk-update-icon-cache', '-f', '-t', "#{CREW_PREFIX}/share/icons/hicolor"
end
end