summaryrefslogtreecommitdiff
path: root/mtx-svn/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-10-09 10:30:30 +0200
committerErich Eckner <git@eckner.net>2019-10-09 10:30:30 +0200
commitee7644518ec389348cf6c77fe5f902257907ff9e (patch)
treeeb0ad180bd4581f9a9fa7997acb48a6ce0ece09a /mtx-svn/PKGBUILD
parent859da34a799aa63658b7cd2687a81d25e81b8ee2 (diff)
downloadarchlinuxewe.git.save-ee7644518ec389348cf6c77fe5f902257907ff9e.tar.xz
mtx-svn: use snapshot-zip instead of cloning svn repository
Diffstat (limited to 'mtx-svn/PKGBUILD')
-rw-r--r--mtx-svn/PKGBUILD16
1 files changed, 5 insertions, 11 deletions
diff --git a/mtx-svn/PKGBUILD b/mtx-svn/PKGBUILD
index a98d5860..74407b28 100644
--- a/mtx-svn/PKGBUILD
+++ b/mtx-svn/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: Dylan Whichard <dylan at whichard dot com>
pkgname=mtx-svn
-_pkgname=mtx
pkgver=r200
+_distdir="mtx-code-${pkgver}-trunk-mtx"
pkgrel=2
pkgdesc="Tools used to view information about, and to control, Media Changer devices such as Tape and DVD/CD libraries."
arch=('armv6h' 'armv7h' 'aarch64' 'i686' 'pentium4' 'x86_64')
@@ -12,23 +12,17 @@ license=('GPL2')
provides=('mtx')
conflicts=('mtx')
makedepends=('subversion')
-source=("mtx-svn::svn+http://svn.code.sf.net/p/mtx/code/trunk#revision=${pkgver#r}")
-md5sums=('SKIP')
-
-pkgver() {
- cd "${pkgname}"
- local ver="$(svnversion)"
- printf "r%s" "${ver//[[:alpha:]]}"
-}
+source=("https://sourceforge.net/code-snapshots/svn/m/mt/mtx/code/${_distdir}.zip")
+sha512sums=('cd7e1f1f003acf95e1bb55936180ba6da47d146ce6bd5f87c2ba5ca02779a4e187d1a1e903c36bc6725e6d29e14574cf427933127621d3f441c95fdeb29f9f2f')
build() {
- cd "${srcdir}/${pkgname}/mtx"
+ cd "${srcdir}/${_distdir}"
./configure --prefix=/usr
make
}
package() {
- cd "${srcdir}/${pkgname}/mtx"
+ cd "${srcdir}/${_distdir}"
make prefix="$pkgdir/usr" sbindir="$pkgdir/usr/bin" mandir="$pkgdir/usr/share/man" install
}