initial commit
This commit is contained in:
46
screenshot/PKGBUILD
Normal file
46
screenshot/PKGBUILD
Normal file
@@ -0,0 +1,46 @@
|
||||
# Maintainer: Kyle Yasuda <you@example.com>
|
||||
pkgname=screenshot-git
|
||||
pkgver=20250504.r0fa6ed0 # overridden by pkgver()
|
||||
pkgrel=1
|
||||
pkgdesc="Wayland screenshot tool (grim/slurp/rofi/zenity/swappy) – git version"
|
||||
arch=('x86_64')
|
||||
url="https://gitea.suda.codes/sudacode/screenshot"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
grim # capture
|
||||
slurp # region select
|
||||
rofi # menu picker
|
||||
zenity # file-save dialog
|
||||
wl-clipboard # wl-copy
|
||||
jq # JSON parsing
|
||||
hyprland # hyprctl
|
||||
swappy # annotation
|
||||
libnotify # notifications
|
||||
)
|
||||
makedepends=(git go)
|
||||
provides=('screenshot')
|
||||
conflicts=('screenshot')
|
||||
source=("git+https://gitea.suda.codes/sudacode/screenshot.git")
|
||||
md5sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd screenshot
|
||||
local _ct=$(git log -1 --format='%ct')
|
||||
local _date=$(date -u -d "@${_ct}" +%Y%m%d)
|
||||
local _hash=$(git rev-parse --short=7 HEAD)
|
||||
printf '%s.r%s' "${_date}" "${_hash}"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd screenshot
|
||||
go mod download
|
||||
go build -trimpath -o screenshot
|
||||
}
|
||||
|
||||
package() {
|
||||
cd screenshot
|
||||
install -Dm755 screenshot "${pkgdir}/usr/bin/screenshot"
|
||||
# install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
Reference in New Issue
Block a user