PKGBUILDs/mtdev/static-compat/PKGBUILD
Martchus 5411a9d1fd Update static libraries
* Use an older glibc so resulting binaries can run
  on older systems (without having to link statically
  against glibc)
* Call packages static-compat-* to make it clear that
  these packages are intended for compatibility with
  older distributions
* Add further libraries to get static-compat-qt6-base
  and some other static-compat-qt6-* packages building
2022-04-28 22:43:29 +02:00

40 lines
1.0 KiB
Bash

# Contributor: AndyRTR <andyrtr@archlinux.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
_pkgname=mtdev
pkgname=static-compat-$_pkgname
pkgver=1.1.6
pkgrel=1
pkgdesc="A stand-alone library which transforms all variants of kernel MT events to the slotted type B protocol"
arch=('x86_64')
url="https://bitmath.org/code/mtdev/"
license=('custom:MIT')
depends=('glibc-static-compat')
makedepends=('static-compat-configure')
options=(staticlibs)
source=("$url$_pkgname-$pkgver.tar.bz2")
sha512sums=('859fb0803f330ecaae69f80713ff5a5235c0cb00de6d5ac2717ad82cea856a92b866f0c272ecfe743186abcf925f95585149ba4828b4c91555cfeb2f2a1c98f1')
build() {
source static-compat-environment
cd "$_pkgname-$pkgver"
static-compat-configure --disable-shared --enable-static
make
}
check() {
source static-compat-environment
cd "$_pkgname-$pkgver"
make -k check
}
package() {
source static-compat-environment
cd "$_pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
# license
install -Dm644 COPYING \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}