summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a5e7a56d862e5e89c6536fe95a20100d246b212c (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
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Laura Leddin <laura+aur@llaura.de>
_pkgname=sponge-case
pkgname=sponge-case-git
pkgver=v1.0.0_3_gee8dab4
pkgrel=1
epoch=
pkgdesc="Converts strings to spongebob mocking case"
arch=('x86_64')
url="https://github.com/FabianTe/sponge-case"
license=()
groups=()
depends=()
makedepends=('git'
             'go-pie')
checkdepends=()
optdepends=()
provides=('sponge-case')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/FabianTe/sponge-case.git")
noextract=()
validpgpkeys=()
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --tags --long | sed s/-/_/g
}

build() {
	cd "${srcdir}/${_pkgname}"
	go build -o "${srcdir}/pkg/sponge-case"
}

package() {
	install -Dm755 "${srcdir}/pkg/sponge-case" -t "${pkgdir}/usr/bin/"
}