mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-02 00:13:36 +05:00
Import project
This commit is contained in:
parent
f0e39831c2
commit
1b0cbbf5cd
13 changed files with 588 additions and 0 deletions
32
PKGBUILD
Normal file
32
PKGBUILD
Normal file
|
@ -0,0 +1,32 @@
|
|||
pkgname=simplefileshare
|
||||
pkgver=0.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="Simple file share"
|
||||
arch=('x86_64' 'aarch64')
|
||||
license=('GPL')
|
||||
url="https://github.com/nxshock/$pkgname"
|
||||
makedepends=('go' 'git')
|
||||
options=('!strip')
|
||||
backup=("etc/$pkgname.toml")
|
||||
source=("git+https://github.com/nxshock/$pkgname.git")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname"
|
||||
|
||||
export CGO_CPPFLAGS="${CPPFLAGS}"
|
||||
export CGO_CFLAGS="${CFLAGS}"
|
||||
export CGO_CXXFLAGS="${CXXFLAGS}"
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
|
||||
go build -o $pkgname -buildmode=pie -trimpath -ldflags="-linkmode=external -s -w"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname"
|
||||
|
||||
install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||
install -Dm644 "$pkgname.conf" "$pkgdir/etc/$pkgname.conf"
|
||||
install -Dm644 "$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
install -Dm644 "$pkgname.sysusers" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue