summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6f75d0409eeccda4bb4c1ec43af6906e8f0d2849 (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: Gomasy <nyan@gomasy.jp>

_pkgname=sl
pkgname=erutaso
pkgver=r27.bd3a103
pkgrel=1
pkgdesc='Eru Chitanda runs across your terminal when you type "erutaso" as you meant to type "ls".'
arch=('i686' 'x86_64')
url="https://github.com/sgymtic/sl"
license=('custom')
depends=('ncurses')
source=("git+$url.git")
md5sums=('SKIP')

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

build() {
  cd $_pkgname

  cc $CFLAGS -o erutaso sl.c -lcurses
  gzip -9 -f erutaso.1
}

package() {
  cd $_pkgname

  install -Dm 775 erutaso "$pkgdir/usr/bin/erutaso"
  install -Dm 644 erutaso.1.gz "$pkgdir/usr/share/man/man1/erutaso.1.gz"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}