diff options
author | patrick brisbin <pbrisbin@gmail.com> | 2014-05-16 09:21:06 -0400 |
---|---|---|
committer | Mike Burns <mike@mike-burns.com> | 2014-05-23 11:09:48 +0200 |
commit | 5ce5e75a6c43badabb3dcd382033ef576071ef87 (patch) | |
tree | e3eef00bf0c8585655ee66aa63911d67befe470f | |
parent | cc94fa0f3faa04c517d422f0e02c843b8df2e757 (diff) |
Add -git PKGBUILD
This allows people to install rcm-git on Arch.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | arch/git-PKGBUILD.in | 47 | ||||
-rw-r--r-- | configure.ac | 2 |
3 files changed, 49 insertions, 1 deletions
@@ -18,6 +18,7 @@ depcomp debian/rcm debian/rcm.debhelper.log share/rcm.sh +arch/git-PKGBIULD bin/lsrc bin/mkrc bin/rcup diff --git a/arch/git-PKGBUILD.in b/arch/git-PKGBUILD.in new file mode 100644 index 0000000..5f70822 --- /dev/null +++ b/arch/git-PKGBUILD.in @@ -0,0 +1,47 @@ +# Maintainer: Pat Brisbin <pbrisbin@gmail.com> +_gitname='@PACKAGE@' +pkgname=$_gitname-git +pkgver=0.0.0 +pkgrel=3 +pkgdesc="rc file (dotfile) management" +arch=('any') +url="http://thoughtbot.github.io/@PACKAGE@/" +license=('BSD') +conflicts=('@PACKAGE@') +makedepends=('git' 'ruby-mustache') +source=('git://github.com/thoughtbot/@PACKAGE@') +md5sums=('SKIP') + +pkgver() { + cd "$_gitname" + + git describe --always | sed 's|-|.|g' +} + +prepare() { + cd "$_gitname" + + ./autogen.sh +} + +build() { + cd "$_gitname" + + ./configure \ + --disable-debug \ + --disable-dependency-tracking \ + --disable-silent-rules \ + --prefix=/usr + + make +} + +package() { + cd "$_gitname" + + make DESTDIR="$pkgdir/" install + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_gitname/LICENSE" +} + +# vim:set ts=2 sw=2 et: diff --git a/configure.ac b/configure.ac index b28de09..1875c2d 100644 --- a/configure.ac +++ b/configure.ac @@ -23,4 +23,4 @@ AC_SUBST([SHELL]) # Checks for library functions. AM_EXTRA_RECURSIVE_TARGETS([release_build_man_html release_push_man_html release_clean_man_html]) -AC_OUTPUT(Makefile bin/Makefile man/Makefile share/Makefile test/Makefile share/rcm.sh NEWS.md bin/lsrc bin/mkrc bin/rcdn bin/rcup) +AC_OUTPUT(Makefile bin/Makefile man/Makefile share/Makefile test/Makefile share/rcm.sh arch/git-PKGBUILD NEWS.md bin/lsrc bin/mkrc bin/rcdn bin/rcup) |