diff options
author | aksr | 2019-09-26 07:54:08 +0200 |
---|---|---|
committer | aksr | 2019-09-26 07:54:08 +0200 |
commit | 5229fd1ba8a98c294f34b187294cc4afd22223a0 (patch) | |
tree | 9dfe938c6ae4aa805731cf3949c26c842069aef1 | |
download | aur-5229fd1ba8a98c294f34b187294cc4afd22223a0.tar.gz |
Start.
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 47 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f7ecc6d657f8 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Thu Sep 26 05:54:08 UTC 2019 +pkgbase = v10spell-git + pkgdesc = The spell program from the Tenth Edition Research UNIX system. + pkgver = r16.g75bfc6e + pkgrel = 1 + url = https://github.com/arnoldrobbins/v10spell + arch = i686 + arch = x86_64 + license = custom + makedepends = git + conflicts = v10spell + source = v10spell-git::git+https://github.com/arnoldrobbins/v10spell + md5sums = SKIP + +pkgname = v10spell-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aa26c9e34faf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: aksr <aksr at t-com dot me> +pkgname=v10spell-git +pkgver=r16.g75bfc6e +pkgrel=1 +epoch= +pkgdesc='The spell program from the Tenth Edition Research UNIX system.' +arch=('i686' 'x86_64') +url='https://github.com/arnoldrobbins/v10spell' +license=('custom') +groups=() +depends=() +makedepends=('git') +optdepends=() +checkdepends=() +provides=() +conflicts=("${pkgname%-*}") +replaces=() +backup=() +options=() +changelog= +install= +source=("$pkgname::git+$url") +noextract=() +md5sums=('SKIP') + +prepare() { + cd "$srcdir/$pkgname" + sed -i 's@/usr/local/lib/v10spell@/usr/lib/v10spell@g' spell.1 +} + +pkgver() { + cd "$srcdir/$pkgname" + git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v10.code.from.TUHS.//' +} + +build() { + cd "$srcdir/$pkgname" + make +} + +package() { + cd "$srcdir/$pkgname" + make PREFIX="${pkgdir}/usr" install + install -D -m644 README $pkgdir/usr/share/doc/${pkgname%-*}/README + install -D -m644 README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md +} + |