summaryrefslogtreecommitdiff
path: root/clipman/Pkgfile
blob: aa959b855e8a3d189eaed1dc467951c6c826f2e0 (plain)
    1 # Description: A simple clipboard manager for Wayland
    2 # URL: https://github.com/yory8/clipman
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: go startup-notification wl-clipboard-rs wlroots wofi
    5 
    6 name=clipman
    7 version=1.6.1
    8 release=1
    9 source=(https://github.com/yory8/clipman/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cd $name-$version
   13 
   14   export CGO_CPPFLAGS="${CPPFLAGS}"
   15   export CGO_CFLAGS="${CFLAGS}"
   16   export CGO_CXXFLAGS="${CXXFLAGS}"
   17   export CGO_LDFLAGS="${LDFLAGS}"
   18 
   19   mkdir "$PKGMK_SOURCE_DIR/gopath" || true
   20   export GOPATH="$PKGMK_SOURCE_DIR/gopath"
   21 
   22   go build \
   23     -trimpath \
   24     -buildmode=pie \
   25     -mod=readonly \
   26     -modcacherw \
   27     -o $name .
   28   install -Dm755 $name $PKG/usr/bin/$name
   29   install -Dm644 docs/$name.1 $PKG/usr/share/man/man1/$name.1
   30 }

Generated by cgit