diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/PKGBUILD | 39 | ||||
-rw-r--r-- | arch/PKGBUILD.in | 33 |
2 files changed, 33 insertions, 39 deletions
diff --git a/arch/PKGBUILD b/arch/PKGBUILD deleted file mode 100644 index af5503e..0000000 --- a/arch/PKGBUILD +++ /dev/null @@ -1,39 +0,0 @@ -# Maintainer: Pat Brisbin <pbrisbin@gmail.com> -_gitname=rcm -pkgname=$_gitname-git -pkgver=0.0.0 -pkgrel=1 -pkgdesc="rc file (dotfile) management" -arch=('any') -url="https://github.com/mike-burns/rcm" -license=('BSD') -makedepends=('git') -source=('git://github.com/mike-burns/rcm') -md5sums=('SKIP') - -pkgver() { - cd $_gitname - - git describe --always | sed 's|-|.|g' -} - -build() { - cd $_gitname - - aclocal - automake --add-missing --copy - autoconf - - ./configure --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/arch/PKGBUILD.in b/arch/PKGBUILD.in new file mode 100644 index 0000000..3e197d9 --- /dev/null +++ b/arch/PKGBUILD.in @@ -0,0 +1,33 @@ +# Maintainer: Pat Brisbin <pbrisbin@gmail.com> +pkgname='@PACKAGE@' +pkgver=@PACKAGE_VERSION@ +pkgrel=1 +pkgdesc="rc file (dotfile) management" +arch=('any') +url="http://thoughtbot.github.io/@PACKAGE@/" +license=('BSD') +depends=('') +source=("http://thoughtbot.github.io/@PACKAGE@/dist/@DIST_ARCHIVES@") +sha1sums=('@DIST_SHA@') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + ./configure \ + --disable-debug \ + --disable-dependency-tracking \ + --disable-silent-rules \ + --prefix=/usr + + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/${pkgname}/LICENSE" +} + +# vim:set ts=2 sw=2 et: |