summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0d6d552096065fcd3b823bcfadfebc0a8150b36 (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
40
41
42
43
44
45
46
# Maintainer: Gingka/Ginger Pepper <gingkathfox @ gmail . com>
pkgname=uwupp-git
pkgver=0.2.0.r4.g4fcc0fe
pkgrel=1
pkgdesc="The next generation esoteric language."
arch=('x86_64')
url="https://github.com/Deltaphish/UwUpp/"
license=('BSD')
groups=()
depends=(stack)
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(git+https://github.com/Deltaphish/UwUpp.git)
noextract=()
md5sums=('SKIP')

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

build() {
  cd "$srcdir/UwUpp"
  stack build
}

package() {
    cd "$srcdir/UwUpp"
    stack install
    # Rename output binary
    cd $(stack path --local-bin)
    if test -f "./UwUpp-exe"; then
        mv ./UwUpp-exe ./uwupp
        echo -e "\n\n\e[1;33mBinary has been renamed to \"uwupp\".\e[0m\n\n"
    fi # If the file doesn't exist, just ignore it
}
makesrcinfo() {
    makepkg --printsrcinfo > .SRCINFO
}