new blfs: media-libs/libogg-1.3.6
This commit is contained in:
33
media-libs/libogg-1.3.6.PKGBUILD
Normal file
33
media-libs/libogg-1.3.6.PKGBUILD
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
pkgname=libogg
|
||||||
|
pkgver=1.3.6
|
||||||
|
pkgdesc='Ogg bitstream and framing library'
|
||||||
|
arch=(x86_64)
|
||||||
|
homepage=https://www.xiph.org/ogg/
|
||||||
|
license=(BSD)
|
||||||
|
depends=(glibc)
|
||||||
|
makedepends=(
|
||||||
|
cmake
|
||||||
|
ninja
|
||||||
|
)
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||||
|
urls=("https://downloads.xiph.org/releases/ogg/${sources[0]}")
|
||||||
|
sha512sums=("2168548e57e23fadca4aa66351214b23d699bc3aa47f5d065f8b583a3fe85c99333014a6aa38e4021b0e3750115b88258a6c00cac1e1496cdee5f12cdc633814")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
cmake -B build \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||||
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
cmake --build build
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DESTDIR="${pkgdir}" cmake --install build
|
||||||
|
install -Dm 644 COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}/
|
||||||
|
install -Dm 644 ogg.m4 -t "${pkgdir}"/usr/share/aclocal/
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:ft=sh syn=sh et sw=2:
|
||||||
Reference in New Issue
Block a user