summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35c006a14a499c74d34b49728bd8a293c65f4e9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Franc[e]sco <lolisamurai@tfwno.gf>

pkgname=sharenix-git
pkgver=r185.8c9e08c
pkgrel=1
pkgdesc="file uploading tool with ShareX-compatible config"
arch=('i686' 'x86_64')
url="https://github.com/francesco149/sharenix"
license=('GPLv3')
provides=('sharenix')
makedepends=('git' 'go' 'gtk2' 'pkgconf')
depends=('glibc' 'gtk2')
optdepends=('gnome-screenshot: allows screenshotting regions with sharenix-window and sharenix-section')
source=("git+https://github.com/Francesco149/sharenix.git")
md5sums=('SKIP')
install=sharenix-git.install

pkgver() {
  cd "$srcdir/sharenix"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/sharenix"
  go build
}

package() {
  install -Dm755 "$srcdir/sharenix/sharenix" -t "$pkgdir/usr/bin/"
  install -Dm755 "$srcdir/sharenix/sharenix-section" -t "$pkgdir/usr/bin/"
  install -Dm755 "$srcdir/sharenix/sharenix-window" -t "$pkgdir/usr/bin/"
  install -Dm644 "$srcdir/sharenix/sharenix.json" -t "$pkgdir/etc/"
  install -Dm644 "$srcdir/sharenix/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}

# vim:set ts=2 sw=2 et: