summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b01e3eb0d98d15e640fdae3eae3f357cd20f1899 (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
# Maintainer: Oto Šťáva <oto.stava@gmail.com>
_pkgname=autoedit

pkgname=${_pkgname}-git
pkgver=r1.af46184
pkgrel=1
pkgdesc="A script for interactive editing of GNU Autotools project configurations"
arch=('any')
url="https://gitlab.com/Spiffyk/autoedit"
license=('MIT')
depends=('autoconf' 'bash' 'grep')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://gitlab.com/Spiffyk/autoedit.git")
sha256sums=('SKIP')

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

package() {
	cd "$srcdir/${_pkgname}"
	mkdir -p "$pkgdir/usr/bin"
	cp autoedit.sh "$pkgdir/usr/bin/autoedit"
}