summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Parrish2015-08-14 15:34:24 -0400
committerDavid Parrish2015-08-14 15:34:24 -0400
commit7743c87d2bd598dcca63a4f6680884498507587e (patch)
tree8e54ca47da995fc8b96a46ff10e07782644d87ae
parent76ae8786c3fd6652828babc5974bbc47de344850 (diff)
downloadaur-7743c87d2bd598dcca63a4f6680884498507587e.tar.gz
Add man page, bash completion and removed 'mo' as a package dependency
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD50
2 files changed, 48 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 36746eabe13..acae8008c60 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,17 @@
pkgbase = decompose-git
pkgdesc = Development Environment Compose - templating framework to help developers easily create and switch environments
- pkgver = r21.6632368
+ pkgver = r35.d3236e2
pkgrel = 1
url = https://github.com/dmp1ce/decompose
arch = i686
arch = x86_64
license = custom
+ makedepends = txt2man
depends = bash
- depends = mo-git
+ depends = bash-completion
source = decompose-git::git+https://github.com/dmp1ce/decompose.git
+ source = decompose-git-mo::git+https://github.com/tests-always-included/mo.git
+ sha256sums = SKIP
sha256sums = SKIP
pkgname = decompose-git
diff --git a/PKGBUILD b/PKGBUILD
index 312846e5e52..6ba7359c463 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,61 @@
# Maintainer: David Parrish <daveparrish@tutanota.com>
pkgname=decompose-git
-pkgver=r21.6632368
+pkgver=r35.d3236e2
pkgrel=1
-pkgdesc="Development Environment Compose - templating framework to help developers easily create and switch environments"
+pkgdesc="Development Environment Compose - templating framework to help \
+ developers easily create and switch environments"
arch=('i686' 'x86_64')
url="https://github.com/dmp1ce/decompose"
license=('custom')
-depends=('bash' 'mo-git')
-source=("${pkgname}::git+https://github.com/dmp1ce/decompose.git")
-sha256sums=("SKIP")
+depends=('bash' 'bash-completion')
+makedepends=('txt2man')
+source=("${pkgname}::git+https://github.com/dmp1ce/decompose.git"
+ "${pkgname}-mo::git+https://github.com/tests-always-included/mo.git")
+sha256sums=("SKIP" "SKIP")
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
+prepare() {
+ # Put 'mo' submodule into the correct location
+ cd "$pkgname"
+ git config submodule.mo.url "$srcdir/${pkgname}-mo"
+ git submodule update
+}
+
+build() {
+ # Build man page
+ cd "$pkgname/man"
+ ./build_man_page
+}
+
package() {
# Install License
- install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Put code files into '/usr/share/decompose'
+ install -Dm755 "$pkgname/decompose" "$pkgdir/usr/share/decompose/decompose"
+ install -Dm644 "$pkgname/decompose-functions" \
+ "$pkgdir/usr/share/decompose/decompose-functions"
+ install -Dm644 "$pkgname/completion/decompose-bash-completion" \
+ "$pkgdir/usr/share/decompose/completion/decompose-bash-completion"
+ install -Dm644 "$pkgname/completion/decompose-bash-completion-functions" \
+ "$pkgdir/usr/share/decompose/completion/decompose-bash-completion-functions"
+ install -Dm755 "$pkgname/mo/mo" "$pkgdir/usr/share/decompose/mo/mo"
# Install binary
- install -Dm755 $pkgname/decompose "${pkgdir}/usr/bin/decompose"
+ install -d "${pkgdir}/usr/bin"
+ ln -s "/usr/share/decompose/decompose" "${pkgdir}/usr/bin"
+
+ # Install tab completion
+ install -d "${pkgdir}/usr/share/bash-completion/completions"
+ ln -s "/usr/share/decompose/completion/decompose-bash-completion" \
+ "${pkgdir}/usr/share/bash-completion/completions/decompose"
+
+ # Install man page
+ install -Dm644 "$pkgname/man/decompose.1.gz" \
+ "$pkgdir/usr/share/man/man1/decompose.1.gz"
}