restructure #3

Merged
wyj merged 82 commits from dev into main 2026-01-18 20:12:27 -05:00
Showing only changes of commit 739e0f336e - Show all commits

View File

@@ -0,0 +1,29 @@
pkgname=cliphist
pkgver=0.7.0
pkgdesc="Wayland clipboard manager with support for multimedia"
homepage="https://github.com/sentriz/cliphist"
license=("GPL-3" "MIT" "BSD")
depends=(wl-clipboard xdg-utils)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/henri-gasc/cliphist/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=("a74ee41fb96796ae4fc397410a466d31a49dfb6de7adf8eb9a16c236ea1db95b14d321909a68ba63fb9fc94b48919aa6634c5d41add51e294f3d6a03d4c62086")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
export CGO_CPPFLAGS="$CPPFLAGS"
export CGO_CFLAGS="$CFLAGS"
export CGO_CXXFLAGS="$CXXFLAGS"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build \
-ldflags "-linkmode external -extldflags '$LDFLAGS'" \
-o $pkgname
}
src_install() {
install -vDm0755 -t "$pkgdir/usr/bin/" $pkgname
}
# vim:ft=sh syn=sh et sw=2: