diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 46 | ||||
-rw-r--r-- | open-usp-tukubai-git.install | 12 |
3 files changed, 77 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..03921099760b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Thu May 26 01:30:39 UTC 2016 +pkgbase = open-usp-tukubai-git + pkgdesc = An open source version of shell commands usp Tukubai. + pkgver = 20151015.rev321 + pkgrel = 1 + url = https://github.com/usp-engineers-community/Open-usp-Tukubai + install = open-usp-tukubai-git.install + arch = any + license = MIT + license = custom + depends = python2 + depends = git + conflicts = open-usp-tukubai + source = open-usp-tukubai::git://github.com/usp-engineers-community/Open-usp-Tukubai.git + md5sums = SKIP + +pkgname = open-usp-tukubai-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0e8744eba78f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Tatsunori Aoki <ginjiro.135 [at] gmail.com> +# Contributor: @kunst1080 + +## インストールディレクトリを変更したい場合、次の変数の値を任意のパスに書き換えること。 +LOCALBASE='/usr/local' + +################################################## + +pkgname='open-usp-tukubai-git' +pkgver=20151015.rev321 +pkgrel=1 +pkgdesc='An open source version of shell commands usp Tukubai.' +url='https://github.com/usp-engineers-community/Open-usp-Tukubai' +arch=('any') +license=('MIT' 'custom') +install=${pkgname}.install +depends=('python2' 'git') +conflicts=('open-usp-tukubai') +source=("$(echo ${pkgname} | sed 's/-git$//')::git://github.com/usp-engineers-community/Open-usp-Tukubai.git") +md5sums=('SKIP') + +reponame=$(echo ${pkgname} | sed 's/-git$//') + +pkgver() { + cd ${reponame} + commit_date=$(git log -1 --format='%ci' | awk 'gsub(/-/, "", $1) && $0=$1"."') + rev=$(git rev-list --count HEAD | sed 's/^/rev/') + echo $commit_date$rev +} + +build() { + cd "${srcdir}/${reponame}/COMMANDS" + find . -type f | xargs -n 1 sed -i '1s/python/&2/' +} + +package() { + cd ${srcdir}/${reponame} + install -d ${pkgdir}${LOCALBASE}/bin + install -d ${pkgdir}${LOCALBASE}/share/open-usp-tukubai/devel/pdf + install -d ${pkgdir}${LOCALBASE}/share/open-usp-tukubai/devel/html + install -d ${pkgdir}${LOCALBASE}/share/open-usp-tukubai/devel/man + install -d ${pkgdir}${LOCALBASE}/share/open-usp-tukubai/devel/doc + make LOCALBASE=${pkgdir}${LOCALBASE} install +} + +# vim:set ts=2 sw=2 et: diff --git a/open-usp-tukubai-git.install b/open-usp-tukubai-git.install new file mode 100644 index 000000000000..7db47f81faed --- /dev/null +++ b/open-usp-tukubai-git.install @@ -0,0 +1,12 @@ +post_install() { + echo + echo '####################################################' + echo '# マニュアルやライセンス等の各種ドキュメントは、 #' + echo '# $LOCALBASE/share/open-usp-tukubai/devel #' + echo '# 以下にあります。 #' + echo '####################################################' +} + +post_upgrade() { + post_install +} |