-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9233aad
commit 9ddfc5c
Showing
1 changed file
with
17 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" | ||
} |