Skip to content

Commit

Permalink
Update ghost
Browse files Browse the repository at this point in the history
  • Loading branch information
FabioLolix committed Jun 23, 2022
1 parent 9233aad commit 9ddfc5c
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions g/ghost/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,40 +1,30 @@
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: z3oxs <z3ox1s@protonmail.com>
pkgname=ghost-git

pkgname=ghost
pkgver=1.1.0
pkgrel=1
epoch=
pkgdesc=""
pkgdesc="Simple tool to take screenshots using your terminal"
arch=(x86_64 i686)
url="https://github.com/z3oxs/ghost.git"
license=('GPL')
groups=()
depends=(go)
makedepends=(go)
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+$url")
noextract=()
md5sums=('SKIP')
validpgpkeys=()
url="https://github.com/z3oxs/ghost"
license=(MIT)
depends=(cairo libxi libxinerama libxrandr libxcursor libglvnd)
makedepends=(git go)
source=("git+$url.git#tag=v${pkgver}")
sha256sums=('SKIP')

build() {
cd "$srcdir/ghost"
go build .
go build \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \
.
}

package() {
cd "$srcdir/ghost"
install -Dm755 ghost "${pkgdir}/usr/bin/ghost"
install -D LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

0 comments on commit 9ddfc5c

Please sign in to comment.