restructure #3
37
gui-apps/slurp-1.5.0.PKGBUILD
Normal file
37
gui-apps/slurp-1.5.0.PKGBUILD
Normal file
@@ -0,0 +1,37 @@
|
||||
pkgname=slurp
|
||||
pkgver=1.5.0
|
||||
pkgdesc="Select a region in a Wayland compositor and print it to the standard output"
|
||||
homepage="https://github.com/emersion/slurp"
|
||||
license=("MIT")
|
||||
depends=(
|
||||
wayland-protocols
|
||||
wayland
|
||||
cairo
|
||||
libxkbcommon
|
||||
)
|
||||
bdepends=(wayland-scanner)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/emersion/${pkgname}/archive/v${pkgver}.tar.gz")
|
||||
sha512sums=("77c4efdaa4ac411f43c598e5d654bcf61f969a5e403df6110757a7b217e02d55d0ba797729e42f8219d3bba79f58bcb36746799de765d3b25f301bf9ac3c1888")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local meson_args=(
|
||||
--prefix=/usr
|
||||
--buildtype=release
|
||||
--wrap-mode=nodownload
|
||||
-D python.bytecompile=1
|
||||
-D man-pages=disabled
|
||||
)
|
||||
meson setup build "${meson_args[@]}"
|
||||
meson compile -C build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson install -C build --destdir "$pkgdir"
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user