summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-04-15 09:12:08 +0200
committerErich Eckner <git@eckner.net>2019-04-15 09:12:08 +0200
commit19ace48bb55b01de28611d3fcba7f103fc595e8b (patch)
treeb75bd0d1bdb8be8faa5d274f52957b8e4f9ad086
parentff376c86492e0a37d237b39ab7b484e42462e219 (diff)
downloadarchlinuxewe-19ace48bb55b01de28611d3fcba7f103fc595e8b.tar.xz
checkVersions: learn svn (for mtx-svn)
-rwxr-xr-xcheckVersions12
-rw-r--r--mtx-svn/PKGBUILD2
2 files changed, 13 insertions, 1 deletions
diff --git a/checkVersions b/checkVersions
index dd2659fbf..7f03e27a7 100755
--- a/checkVersions
+++ b/checkVersions
@@ -458,6 +458,18 @@ then
pkgver
)
elif echo "${src}" | \
+ grep -q '^svn\(+[^:]\+\)\?://[^#]\+\(#revision=[^#]\+\)\?$'
+ then
+ remVer=$(
+ cd "$1"
+ (
+ cd "${src_name}"
+ svn update >/dev/null
+ )
+ srcdir=$(pwd)
+ pkgver
+ )
+ elif echo "${src}" | \
grep -q "^https://pypi\.python\.org/packages/"
then
qu=$(
diff --git a/mtx-svn/PKGBUILD b/mtx-svn/PKGBUILD
index e37e0556d..8ddebde30 100644
--- a/mtx-svn/PKGBUILD
+++ b/mtx-svn/PKGBUILD
@@ -12,7 +12,7 @@ license=('GPL2')
provides=('mtx')
conflicts=('mtx')
makedepends=('subversion')
-source=('mtx-svn::svn+http://svn.code.sf.net/p/mtx/code/trunk')
+source=("mtx-svn::svn+http://svn.code.sf.net/p/mtx/code/trunk#revision=${pkgver#r}")
md5sums=('SKIP')
pkgver() {