summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuki-san2015-05-29 14:18:08 +0900
committeryuki-san2015-06-11 02:17:32 +0900
commit34fc7b5008497f2320c3663b4ccf4506debce6a1 (patch)
tree2401404822e865b34f72d71cac0eed6faaa1d28e
downloadaur-34fc7b5008497f2320c3663b4ccf4506debce6a1.tar.gz
Initial import for AUR4
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD40
-rw-r--r--navi2ch.install22
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6c997e45db0
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = emacs-navi2ch-git
+ pkgdesc = A '2ch bbs' browser worked on Emacsen.
+ pkgver = 1225.faebfd1
+ pkgrel = 1
+ url = http://navi2ch.sourceforge.net/
+ install = navi2ch.install
+ arch = any
+ license = GPL2
+ makedepends = git
+ depends = emacs
+ provides = emacs-navi2ch
+ conflicts = emacs-navi2ch
+ source = emacs-navi2ch::git://github.com/naota/navi2ch.git
+ md5sums = SKIP
+
+pkgname = emacs-navi2ch-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7718e749dbb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: yuki-san <yuki.from.akita _at_ gmail.com>
+
+pkgname=emacs-navi2ch-git
+pkgver=1225.faebfd1
+pkgrel=1
+pkgdesc="A '2ch bbs' browser worked on Emacsen."
+arch=( 'any' )
+url="http://navi2ch.sourceforge.net/"
+license=('GPL2')
+depends=('emacs')
+makedepends=('git')
+provides=(emacs-navi2ch)
+conflicts=(emacs-navi2ch)
+install=navi2ch.install
+source=("${pkgname%-git}"::'git://github.com/naota/navi2ch.git')
+md5sums=('SKIP')
+
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ # Use the tag of the last commit
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+
+ # ./autogen.sh
+ ./configure --prefix=/usr \
+ --with-lispdir=/usr/share/emacs/site-lisp/navi2ch \
+ --with-icondir=/usr/share/icons/navi2ch
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/navi2ch.install b/navi2ch.install
new file mode 100644
index 00000000000..28830dab38e
--- /dev/null
+++ b/navi2ch.install
@@ -0,0 +1,22 @@
+infodir=usr/share/info
+filelist=(navi2ch.info)
+
+post_install() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in "${filelist[@]}"; do
+ install-info "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+pre_remove() {
+ [[ -x usr/bin/install-info ]] || return 0
+ for file in "${filelist[@]}"; do
+ install-info --delete "$infodir/$file.gz" "$infodir/dir" 2> /dev/null
+ done
+}
+
+# vim:set ts=2 sw=2 et: \ No newline at end of file