aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-11-22 22:51:00 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-08 12:23:29 +0200
commitf8693066232fbe596ab20ea905f9ee6e36d65b80 (patch)
tree128b4f92ccdbfe76186803cfe1d1d71587d555d0
downloadpkgbuilds-f8693066232fbe596ab20ea905f9ee6e36d65b80.tar.xz
src-git: Import pkgbuild
-rw-r--r--.SRCINFO20
-rw-r--r--0001-Makefile-run-src-version-from-current-directory.patch27
-rw-r--r--PKGBUILD34
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..dd2628c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 13:54:25 UTC 2015
+pkgbase = src-git
+ pkgdesc = Simple Revision Control with modern UI for single-file projects
+ pkgver = 0.12.r0.g1cb9e4d
+ pkgrel = 1
+ url = http://www.catb.org/esr/src/
+ arch = any
+ license = BSD
+ makedepends = asciidoc
+ depends = python2
+ depends = rcs
+ optdepends = rcs-fast-import: required for src fast-import
+ source = git+https://gitorious.org/src-vcs/src-vcs.git
+ source = 0001-Makefile-run-src-version-from-current-directory.patch
+ sha1sums = SKIP
+ sha1sums = 633120c7c72c778113664636075699b1999ed30a
+
+pkgname = src-git
+
diff --git a/0001-Makefile-run-src-version-from-current-directory.patch b/0001-Makefile-run-src-version-from-current-directory.patch
new file mode 100644
index 0000000..3682d65
--- /dev/null
+++ b/0001-Makefile-run-src-version-from-current-directory.patch
@@ -0,0 +1,27 @@
+From 325e1b914c3caee23547f12c0c0ed3f9918a8d46 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johannes=20L=C3=B6thberg?= <johannes@kyriasis.com>
+Date: Sat, 22 Nov 2014 22:26:04 +0100
+Subject: [PATCH] Makefile: run `src version` from current directory
+
+Relying on $PATH here is broken because either another executable called
+src or an old version of src itself could be in $PATH
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 5d23d10..4d89ee1 100644
+--- a/Makefile
++++ b/Makefile
+@@ -6,7 +6,7 @@ prefix?=/usr/local
+ mandir?=/share/man
+ target=$(DESTDIR)$(prefix)
+
+-VERS=$(shell src version)
++VERS=$(shell ./src version)
+
+ SOURCES = README INSTALL COPYING NEWS TODO src srctest src.asc FAQ.asc Makefile control
+
+--
+2.1.3
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..557eb7b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+pkgname=src-git
+pkgver=0.12.r0.g1cb9e4d
+pkgrel=1
+
+pkgdesc="Simple Revision Control with modern UI for single-file projects"
+url="http://www.catb.org/esr/src/"
+arch=('any')
+license=('BSD')
+
+depends=('python2' 'rcs')
+makedepends=('asciidoc')
+optdepends=('rcs-fast-import: required for src fast-import')
+
+source=('git+https://gitorious.org/src-vcs/src-vcs.git'
+ '0001-Makefile-run-src-version-from-current-directory.patch')
+
+sha1sums=('SKIP'
+ '633120c7c72c778113664636075699b1999ed30a')
+
+pkgver() {
+ cd src-vcs
+ git describe --long | sed -r 's/([^-]*-g)/r\1/; s/-/./g'
+}
+
+prepare() {
+ cd src-vcs
+ git am "$srcdir"/0001-Makefile-run-src-version-from-current-directory.patch
+}
+
+package() {
+ cd src-vcs
+ make DESTDIR="$pkgdir" prefix=/usr install
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
+}