summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: be0941be3bb2e99e023e2c5119d5eb63bf7ee0bd (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: Kyle Keen <keenerd@gmail.com>

pkgname=no-more-secrets-git
pkgver=0.1.0.r16.g3bd7512
pkgrel=1
pkgdesc="A tool set to recreate the famous 'decrypting text' effect as seen in the 1992 movie Sneakers, aka nms."
url="https://github.com/bartobri/no-more-secrets"
arch=('i686' 'x86_64')
license=('GPL3')
depends=('ncurses')
makedepends=('git')
source=('git+https://github.com/bartobri/no-more-secrets.git')
md5sums=('SKIP')

_gitname="no-more-secrets"

pkgver() {
  cd $_gitname
  #git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
  git describe --tags | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd $_gitname
  make
}

package() {
  cd $_gitname/bin
  install -Dm755 sneakers "$pkgdir/usr/bin/sneakers"
  install -Dm755 nms      "$pkgdir/usr/bin/nms"
}