summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD36
1 files changed, 11 insertions, 25 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 37599598c83..9fd40314b88 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,42 +1,28 @@
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
pkgname=emacs-nyan-mode
-pkgver=20120517
+pkgver=1.1.1
pkgrel=1
+epoch=1
pkgdesc="Nyan Cat in your Emacs modeline"
arch=('any')
-url="http://github.com/TeMPOraL/nyan-mode/"
+url="http://github.com/TeMPOraL/nyan-mode"
license=('GPL')
depends=('emacs')
-makedepends=('git')
install=emacs-nyan-mode.install
-
-_gitroot=git://github.com/TeMPOraL/nyan-mode.git
-_gitname=nyan-mode
+source=("$url/archive/v${pkgver}.tar.gz")
+sha512sums=('9685c5dcb2f3125e1b00fa2be5a9bd2a27e596fa6b4a0501d0a4ed99a445749f88b00be7a5a8fd2afa217a023d1335cfcab79c6fb13b4e9eeef28032050d14f5')
build() {
- cd "$srcdir"
- msg "Connecting to GIT server...."
-
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
- msg "The local files are updated."
- else
- git clone "$_gitroot" "$_gitname"
- fi
-
- msg "GIT checkout done or server timeout"
- msg "Starting build..."
-
- cd "$srcdir/$_gitname"
+ cd "$srcdir/${pkgname/emacs-/}-${pkgver}"
emacs -batch -f batch-byte-compile nyan-mode.el
}
package() {
- cd "$srcdir/$_gitname"
- install -d $pkgdir/usr/share/emacs/site-lisp
- cp -a $srcdir/$_gitname/*.el* $srcdir/$_gitname/img $pkgdir/usr/share/emacs/site-lisp
-}
+ cd "$srcdir/${pkgname/emacs-/}-${pkgver}"
-# vim:set ts=2 sw=2 et:
+ install -Dm444 *.el* -t "$pkgdir/usr/share/emacs/site-lisp"
+ install -Dm444 img/* -t "$pkgdir/usr/share/emacs/site-lisp/img"
+ install -Dm444 mus/* -t "$pkgdir/usr/share/emacs/site-lisp/mus"
+}