summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authoraksr2019-09-26 07:54:08 +0200
committeraksr2019-09-26 07:54:08 +0200
commit5229fd1ba8a98c294f34b187294cc4afd22223a0 (patch)
tree9dfe938c6ae4aa805731cf3949c26c842069aef1 /PKGBUILD
downloadaur-5229fd1ba8a98c294f34b187294cc4afd22223a0.tar.gz
Start.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aa26c9e34fa
--- /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
+}
+