summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddcff0a52767136405f5a2d58469c27cb4d7dd4a (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
37
38
39
# Maintainer: Ricardo (XenGi) Band <email@ricardo.band>

pkgname=c-lolcat
pkgver=r40.ceb4d66
pkgrel=2
pkgdesc="High-performance implementation of lolcat"
arch=('i686' 'x86_64')
url="https://github.com/jaseg/lolcat"
license=('WTFPL')
depends=()
makedepends=()
conflicts=('lolcat' 'pyhton-lolcat')
source=("${pkgname}"::'git+https://github.com/jaseg/lolcat.git')
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${pkgname}"
    printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git describe --always)"
}

#prepare() {
#    cd "${srcdir}/${pkgname}"
    #git submodule update --init musl
    #git submodule update --init memorymapping
    #git submodule init
    #git submodule update
#}

build() {
  cd "${srcdir}/${pkgname}"
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  #mkdir -p "${pkgdir}/usr/bin"
  #make DESTDIR="${pkgdir}/usr/bin" install
  install --mode=755 -D -- lolcat ${pkgdir}/usr/bin/lolcat
}