mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 01:24:37 +08:00
35 lines
885 B
Bash
35 lines
885 B
Bash
# Maintainer: drakkan <nicola.murino@gmail.com>
|
|
# Contributor: drakkan <nicola.murino@gmail.com>
|
|
|
|
pkgname=openh264
|
|
pkgver=1.5.0
|
|
pkgrel=1
|
|
pkgdesc='OpenH264 is a codec library which supports H.264 encoding and decoding'
|
|
license=('BSD')
|
|
arch=('x86_64')
|
|
url="http://www.openh264.org/"
|
|
depends=('gcc-libs')
|
|
makedepends=('nasm')
|
|
source=("https://github.com/cisco/openh264/archive/v${pkgver}.tar.gz")
|
|
sha256sums=('98077bd5d113c183ce02b678733b0cada2cf36750370579534c4d70f0b6c27b5')
|
|
|
|
prepare() {
|
|
cd "openh264-$pkgver"
|
|
sed -i 's/PREFIX=\/usr\/local/PREFIX=\/usr/g' Makefile
|
|
}
|
|
|
|
build() {
|
|
cd "openh264-$pkgver"
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "openh264-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm755 h264dec "$pkgdir"/usr/bin/h264dec
|
|
install -Dm755 h264enc "$pkgdir"/usr/bin/h264enc
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|