mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
44 lines
1.4 KiB
Ruby
44 lines
1.4 KiB
Ruby
# Adapted from Arch Linux tevent PKGBUILD at:
|
|
# https://github.com/archlinux/svntogit-packages/raw/packages/tevent/trunk/PKGBUILD
|
|
|
|
require 'package'
|
|
|
|
class Tevent < Package
|
|
description 'Event system based on the talloc memory management library'
|
|
homepage 'https://tevent.samba.org/'
|
|
@_ver = '0.15.0'
|
|
version "#{@_ver}-py3.12"
|
|
license 'LGPL'
|
|
compatibility 'all'
|
|
source_url "https://samba.org/ftp/tevent/tevent-#{@_ver}.tar.gz"
|
|
source_sha256 '662a9f277281bcf506b6bc0a0baa03e44a62229516ee34bcc703a0b82aa46905'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '4c53a7e86a60c982855809c9bca2cbaf4802b1cc8d7919fae6b71e3e4d6deaa7',
|
|
armv7l: '4c53a7e86a60c982855809c9bca2cbaf4802b1cc8d7919fae6b71e3e4d6deaa7',
|
|
i686: '9f0ed4a472cbb1acdb356bf23b9354cb5f22a9a66cf91be6669808fb3acff081',
|
|
x86_64: 'fe16ba3edd13137222598a9565f4f3ae6e231b80868bdfcc262805c84183b412'
|
|
})
|
|
|
|
depends_on 'cmocka' => :build
|
|
depends_on 'glibc' # R
|
|
depends_on 'libbsd' # R
|
|
depends_on 'libxcrypt' => :build
|
|
depends_on 'python3' => :build
|
|
depends_on 'talloc' # R
|
|
|
|
def self.build
|
|
system "./configure #{CREW_OPTIONS.sub(/--program-suffix.*/, '')} \
|
|
--sysconfdir=#{CREW_PREFIX}/etc/samba \
|
|
--localstatedir=#{CREW_PREFIX}/var \
|
|
--bundled-libraries=NONE \
|
|
--builtin-libraries=replace"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system "make DESTDIR=#{CREW_DEST_DIR} install"
|
|
end
|
|
end
|