jobextra/tinycompress/PKGBUILD-arch
2023-01-27 02:06:58 +02:00

53 lines
1 KiB
Text

# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
pkgname=tinycompress
pkgver=1.2.8
pkgrel=1
pkgdesc="ALSA compressed device interface"
url="https://github.com/alsa-project/tinycompress"
arch=(x86_64)
license=(BSD LGPL2.1)
depends=(glibc)
makedepends=(ffmpeg git)
optdepends=("ffmpeg: fcplay utility")
provides=(libtinycompress.so)
options=(debug)
_commit=750ebbe68e48178fae1732aa169fdc8f46fec6fa # tags/v1.2.8^0
source=("git+$url#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd tinycompress
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
mkdir -p build
cd tinycompress
./autogen.sh
}
build() {
local configure_options=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--enable-fcplay
)
cd build
../tinycompress/configure "${configure_options[@]}"
make
}
check() {
make -C build check
}
package() {
make -C build install DESTDIR="$pkgdir"
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 tinycompress/COPYING
}
# vim:set sw=2 sts=-1 et: