summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 917481fbc7b89da69b34b4be692d14c2e061d09a (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
# Maintainer: ahrs <Forward dot to at hotmail dot co dot uk>

pkgname=nougat-git
_pkgname=nougat
pkgver=v1.r14.g2cd377e
pkgrel=1
pkgdesc=' Screenshot wrapper for scrot and maim'
arch=(any)
url='https://github.com/Sweets/nougat'
license=('MIT')
optdepends=('scrot' 'slop' 'maim')
provides=('nougat')
conflicts=('nougat')

pkgver() {
  cd "$_pkgname"
  git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

source=(
  "nougat::git+https://github.com/Sweets/nougat.git"
)

sha512sums=('SKIP')

package() {
  install -dm755 "$pkgdir"/usr/bin

  install -Dm644 "$srcdir"/$_pkgname/$_pkgname "$pkgdir/usr/bin/$_pkgname"

  install -Dm644 "$srcdir"/$_pkgname/README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
  install -Dm644 "$srcdir"/$_pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}