git » mjpegtools.git » main » tree

[main] / PKGBUILD

# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Roberto Carvajal <roberto@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>

pkgname=mjpegtools
pkgver=2.2.1
pkgrel=2
pkgdesc='Video capture, editing, playback and compression to MPEG of MJPEG video'
arch=('x86_64' 'armv7h')
url='https://mjpeg.sourceforge.io/'
license=('GPL-2.0-or-later')
depends=('bash' 'gcc-libs' 'glibc' 'libdv' 'libjpeg-turbo' 'libpng')
source=("https://downloads.sourceforge.net/mjpeg/$pkgname-$pkgver.tar.gz")
b2sums=('a6f2698dda6b7c92a1a786f39bfb1989587b2c35a1f94e435247f04a01f405808d464470fddf1eddaee73df75daaef460bd62e901b89b2b2e0b095332492b20b')

prepare() {
  cd $pkgname-$pkgver
  autoreconf -fi
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}