mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
committed by
GitHub
parent
a8d8030897
commit
9214a58a32
@@ -1,47 +1,32 @@
|
||||
# Adapted from Arch Linux upx PKGBUILD at:
|
||||
# https://github.com/archlinux/svntogit-community/raw/packages/upx/trunk/PKGBUILD
|
||||
|
||||
require 'package'
|
||||
require 'buildsystems/cmake'
|
||||
|
||||
class Upx < Package
|
||||
class Upx < CMake
|
||||
description 'Extendable, high-performance executable packer for several executable formats'
|
||||
homepage 'https://github.com/upx/upx'
|
||||
version '4.0.3-f4c4d51'
|
||||
version '4.1.0'
|
||||
license 'custom GPL2'
|
||||
compatibility 'all'
|
||||
source_url 'https://github.com/upx/upx.git'
|
||||
git_hashtag 'f4c4d5148e4f8c9fc5bfd2c2e836ee2aa27fbaab'
|
||||
git_hashtag "v#{version}"
|
||||
|
||||
binary_url({
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.3-f4c4d51_armv7l/upx-4.0.3-f4c4d51-chromeos-armv7l.tar.zst',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.3-f4c4d51_armv7l/upx-4.0.3-f4c4d51-chromeos-armv7l.tar.zst',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.3-f4c4d51_i686/upx-4.0.3-f4c4d51-chromeos-i686.tar.zst',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.0.3-f4c4d51_x86_64/upx-4.0.3-f4c4d51-chromeos-x86_64.tar.zst'
|
||||
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.1.0_armv7l/upx-4.1.0-chromeos-armv7l.tar.zst',
|
||||
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.1.0_armv7l/upx-4.1.0-chromeos-armv7l.tar.zst',
|
||||
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.1.0_i686/upx-4.1.0-chromeos-i686.tar.zst',
|
||||
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/upx/4.1.0_x86_64/upx-4.1.0-chromeos-x86_64.tar.zst'
|
||||
})
|
||||
binary_sha256({
|
||||
aarch64: 'a6eb586e86e3566185e16873529325bc4828cf1542c02c1347eec9ef06f68309',
|
||||
armv7l: 'a6eb586e86e3566185e16873529325bc4828cf1542c02c1347eec9ef06f68309',
|
||||
i686: '83bf7c39b72055cd7e035d8d70def2c82252151edd3cc0f6f203cac7b35c47dc',
|
||||
x86_64: 'f68d21c492b38e8a7e05cf02ac74455dc60799bd7734f942b188cff8b8992f84'
|
||||
aarch64: 'b6e39f673a256b51ce6f8e0b80951b95ada8005ff14e21b11a1d2551ee01c333',
|
||||
armv7l: 'b6e39f673a256b51ce6f8e0b80951b95ada8005ff14e21b11a1d2551ee01c333',
|
||||
i686: 'fbf4fe2cdc597539968a81c318f2c3bdd02da1563517b646733adc4e4aef5279',
|
||||
x86_64: '11c22778db40cff248a3fec59193ecc710b8502f0ba7ea0d548a837f0380999c'
|
||||
})
|
||||
|
||||
# depends_on 'ucl'
|
||||
depends_on 'gcc_lib' # R
|
||||
depends_on 'glibc' # R
|
||||
|
||||
def self.build
|
||||
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
|
||||
-DUPX_CONFIG_DISABLE_GITREV=true \
|
||||
-G Ninja"
|
||||
system 'samu -C builddir'
|
||||
end
|
||||
|
||||
def self.check
|
||||
# samu does not work here.
|
||||
system 'ninja test -C builddir'
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "DESTDIR=#{CREW_DEST_DIR} samu -C builddir install"
|
||||
end
|
||||
cmake_options '-DUPX_CONFIG_DISABLE_GITREV=true'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user