summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: adc3ae16512099d9d43fa10a4a8338ba05f7ce5a (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
###PKGBUILD was last modified on September 15, 2022 at 03:53 PM EDT by bms###
# Maintainer: Ben Sutter <benjaminsutter@outlook.com>
pkgname=guile-colorized-git
pkgver=v0.1.r5.g1625a79
pkgrel=1
pkgdesc="Colorized Guile REPL from Git"
arch=('any')
url="https://gitlab.com/NalaGinrut/guile-colorized"
license=('GPL')
makedepends=('git' 'sed')
source=("$pkgname::git+https://gitlab.com/NalaGinrut/guile-colorized.git")
md5sums=('SKIP')

prepare() {
  cd "$pkgname"
  sed -i -e "s%^TARGET.\+:= %TARGET := $pkgdir%" -e 's%install:%install:\n	mkdir -p \$\(TARGET\)\n%' Makefile
}

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

package() {
	cd "$pkgname"
	make install
}