Files
chromebrew/packages/neon.rb
Maximilian Downey Twiss f6b6cab229 Rename autotools constants to fall in line with the rest of crew (#10442)
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS

* Rename build_extras and install_extras to configure_build_extras and configure_install_extras
2024-09-09 18:21:58 -05:00

44 lines
1.2 KiB
Ruby

require 'package'
class Neon < Package
description 'neon is an HTTP and WebDAV client library, with a C interface.'
homepage 'http://www.webdav.org/neon/'
version '0.32.5'
license 'GPL-2'
compatibility 'x86_64 aarch64 armv7l'
source_url 'https://github.com/notroj/neon.git'
git_hashtag version
binary_compression 'tar.zst'
binary_sha256({
aarch64: '0444e7c0c3b6ae6b97b355a802491cae583bfd534af2024f64470e87a348cc47',
armv7l: '0444e7c0c3b6ae6b97b355a802491cae583bfd534af2024f64470e87a348cc47',
x86_64: '16f0fdbfd3768f2860a252853731d125cffc0051aa64a5e108b9b758059eeeb6'
})
depends_on 'xmlto' => :build
depends_on 'expat' # R
depends_on 'glibc' # R
depends_on 'krb5' # R
depends_on 'libproxy' # R
depends_on 'openssl' # R
depends_on 'zlib' # R
def self.build
system './autogen.sh'
system 'filefix'
system "./configure \
#{CREW_CONFIGURE_OPTIONS} \
--enable-shared=yes \
--with-ssl=openssl"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install-lib', 'install-headers', 'install-config'
Dir.chdir(CREW_DEST_LIB_PREFIX) do
FileUtils.ln_s "#{CREW_LIB_PREFIX}/libneon.so", 'neon.so'
end
end
end