Commit bfa5937c authored by vincowl's avatar vincowl Committed by GitHub

Add Zathura package, its Poppler-PDF plugin and display system (#4111)

* Add Zathura package and its dependencies and pdf plugin

* Add Zathura postinstall message

* Correct dependencies and postinstall message
Co-authored-by: default avatarVincent GIRARD <vincent@heliosphere.fr>
parent fec24f0f
require 'package'
class Girara < Package
description 'Girara is a library that implements a user interface that focuses on simplicity and minimalism'
homepage 'https://pwmt.org/projects/girara/'
version '0.3.4'
source_url 'https://git.pwmt.org/pwmt/girara/-/archive/0.3.4/girara-0.3.4.tar.bz2'
source_sha256 'e78257e4218a0f7f59cc1bea472c7c6794fa51cd9261d87affbe731c1e22c6a5'
binary_url ({
})
binary_sha256 ({
})
depends_on 'gtk3'
depends_on 'glib'
def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} builddir"
system "ninja -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
require 'package'
class Zathura < Package
description 'zathura is a highly customizable and functional PDF document viewer'
homepage 'https://pwmt.org/projects/zathura/'
version '0.4.5'
source_url 'https://pwmt.org/projects/zathura/download/zathura-0.4.5.tar.xz'
source_sha256 '0c3997aafbcdaaae60a4522f208adadfdd2758b432ce94ea16fbcee937cb762c'
binary_url ({
})
binary_sha256 ({
})
depends_on 'girara'
def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} builddir"
system "ninja -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
def self.postinstall
puts
puts "Please add plugins such as : zathura_poppler_pdf".lightblue
puts "Use command like : 'crew install zathura_poppler_pdf'".lightblue
puts
end
end
require 'package'
class Zathura_poppler_pdf < Package
description 'The zathura_poppler_pdf plugin adds PDF support to zathura by using the poppler rendering engine.'
homepage 'https://pwmt.org/projects/zathura-pdf-poppler/'
version '0.3.0'
source_url 'https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-0.3.0.tar.xz'
source_sha256 'd5cc3a7dae49471b85b503bbb9049c6f8d10903f4a611d721a2e0fefe726d4ed'
binary_url ({
})
binary_sha256 ({
})
depends_on 'zathura'
depends_on 'poppler'
def self.build
system "meson --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX} builddir"
system "ninja -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment