summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-07-17 22:37:28 +0200
committerErich Eckner <git@eckner.net>2024-07-17 22:37:28 +0200
commitf67ad6e96abc2a776dd13f624cdd163804d63ac9 (patch)
tree6bca671d3fc44ae04f55311c6e7ea5248a94a531
parent93c1b87310c9c074781e85fdcfe5383203846861 (diff)
downloadarchlinuxewe-f67ad6e96abc2a776dd13f624cdd163804d63ac9.tar.xz
mtx-git new
-rw-r--r--mtx-git/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/mtx-git/PKGBUILD b/mtx-git/PKGBUILD
new file mode 100644
index 000000000..c62878ec1
--- /dev/null
+++ b/mtx-git/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: William Sutton <will at sutton-family dot org>
+
+pkgname=mtx-git
+_pkgname=mtx
+pkgver=r8.3dc2a38
+pkgrel=3
+pkgdesc="Tools used to view information about, and to control, Media Changer devices such as Tape and DVD/CD libraries."
+arch=('i486' 'i686' 'pentium4' 'x86_64')
+url="https://github.com/mtx-org/mtx"
+license=('GPL2')
+provides=('mtx')
+conflicts=('mtx')
+makedepends=('git')
+_pinned_dependencies=(
+ 'glibc>=2.39+r52+gf8e4623421'
+)
+depends=("${_pinned_dependencies[@]}")
+source=(git+https://github.com/mtx-org/mtx.git)
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}/mtx"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
+}
+
+_CARCH=$CARCH
+[[ $CARCH = i?86 ]] && _CARCH=i686
+
+build() {
+ cd "${srcdir}/${_pkgname}/mtx"
+ ./configure --prefix=/usr --build=${_CARCH}-unknown-linux-gnu
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}/mtx"
+ make prefix="$pkgdir/usr" sbindir="$pkgdir/usr/bin" mandir="$pkgdir/usr/share/man" install
+}