Add filebrowser-service-menu-git
This commit is contained in:
@@ -24,3 +24,8 @@ If it gets built, you can install the resulting `.pkg` file via:
|
||||
sudo pacman -U packagename.pkg.tar.zst
|
||||
```
|
||||
|
||||
The following command can be used to recreate the chroot.
|
||||
```sh
|
||||
pkgctl build -c
|
||||
```
|
||||
|
||||
|
||||
13
filebrowser-service-menu-git/.SRCINFO
Normal file
13
filebrowser-service-menu-git/.SRCINFO
Normal file
@@ -0,0 +1,13 @@
|
||||
pkgbase = filebrowser-service-menu-git
|
||||
pkgdesc = A service menu for KDE to share files via Filebrowser.
|
||||
pkgver = 1.0.0
|
||||
pkgrel = 1
|
||||
url = https://github.com/JustAnyones/FilebrowserServiceMenu
|
||||
arch = x86_64
|
||||
license = MIT
|
||||
makedepends = go
|
||||
makedepends = git
|
||||
source = filebrowser-service-menu-git-1.0.0::git+https://github.com/JustAnyones/FilebrowserServiceMenu.git
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = filebrowser-service-menu-git
|
||||
4
filebrowser-service-menu-git/.gitignore
vendored
Normal file
4
filebrowser-service-menu-git/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/*
|
||||
!/.gitignore
|
||||
!/.SRCINFO
|
||||
!/PKGBUILD
|
||||
36
filebrowser-service-menu-git/PKGBUILD
Normal file
36
filebrowser-service-menu-git/PKGBUILD
Normal file
@@ -0,0 +1,36 @@
|
||||
# Maintainer: Dominykas Svetikas <dominykas@svetikas.lt>
|
||||
|
||||
pkgname=filebrowser-service-menu-git
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="A service menu for KDE to share files via Filebrowser."
|
||||
arch=('x86_64')
|
||||
url="https://github.com/JustAnyones/FilebrowserServiceMenu"
|
||||
license=('MIT')
|
||||
makedepends=('go' 'git')
|
||||
source=("$pkgname-$pkgver::git+$url.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
cd "${pkgname}-${pkgver}" || return
|
||||
export GOPATH="${srcdir}"
|
||||
go mod download
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${pkgname}-${pkgver}" || return
|
||||
#export CGO_ENABLED=0
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||
go build -v -o filebrowser-service-menu ./cmd/main.go
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver" || return
|
||||
install -D -m755 filebrowser-service-menu "$pkgdir/usr/bin/filebrowser-service-menu"
|
||||
install -D -m644 build/shareViaFilebrowser.desktop \
|
||||
"$pkgdir/usr/share/kio/servicemenus/shareViaFilebrowser.desktop"
|
||||
}
|
||||
Reference in New Issue
Block a user