[arch-commits] Commit in libogg/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri May 8 10:00:14 UTC 2020
Date: Friday, May 8, 2020 @ 10:00:11
Author: heftig
Revision: 382778
archrelease: copy trunk to extra-x86_64
Added:
libogg/repos/extra-x86_64/PKGBUILD
(from rev 382777, libogg/trunk/PKGBUILD)
Deleted:
libogg/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 96 +++++++++++++++++++++++++++++--------------------------------
1 file changed, 46 insertions(+), 50 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-08 09:59:07 UTC (rev 382777)
+++ PKGBUILD 2020-05-08 10:00:11 UTC (rev 382778)
@@ -1,50 +0,0 @@
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-# Contributor: Tom Gundersen <teg at jklm.no>
-# Contributor: John Proctor <jproctor at prium.net>
-
-pkgname=libogg
-pkgver=1.3.4
-pkgrel=1
-pkgdesc='Ogg bitstream and framing library'
-arch=(x86_64)
-url=https://www.xiph.org/ogg/
-license=(BSD)
-depends=(glibc)
-makedepends=(
- cmake
- git
- ninja
-)
-source=(git+https://github.com/xiph/ogg.git?signed#tag=3328abd152508614f7ce4cd491dc98d14eba7ffc)
-sha256sums=(SKIP)
-validpgpkeys=(B7B00AEE1F960EEA0FED66FB9259A8F2D2D44C84) # Ralph Giles <giles at thaumas.net>
-
-pkgver() {
- cd ogg
-
- git describe --tags | sed 's/^v//'
-}
-
-prepare() {
- if [[ -d build ]]; then
- rm -rf build
- fi
- mkdir build
-}
-
-build() {
- cd build
-
- cmake ../ogg \
- -G Ninja \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DBUILD_SHARED_LIBS=ON
- ninja
-}
-
-package() {
- DESTDIR="${pkgdir}" ninja -C build install
- install -Dm 644 ogg/COPYING -t "${pkgdir}"/usr/share/licenses/libogg/
-}
-
-# vim: ts=2 sw=2 et:
Copied: libogg/repos/extra-x86_64/PKGBUILD (from rev 382777, libogg/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-05-08 10:00:11 UTC (rev 382778)
@@ -0,0 +1,46 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Tom Gundersen <teg at jklm.no>
+# Contributor: John Proctor <jproctor at prium.net>
+
+pkgname=libogg
+pkgver=1.3.4
+pkgrel=2
+pkgdesc='Ogg bitstream and framing library'
+arch=(x86_64)
+url=https://www.xiph.org/ogg/
+license=(BSD)
+depends=(glibc)
+makedepends=(
+ cmake
+ git
+ ninja
+)
+provides=(libogg.so)
+source=(git+https://github.com/xiph/ogg.git?signed#tag=3328abd152508614f7ce4cd491dc98d14eba7ffc)
+sha256sums=(SKIP)
+validpgpkeys=(B7B00AEE1F960EEA0FED66FB9259A8F2D2D44C84) # Ralph Giles <giles at thaumas.net>
+
+pkgver() {
+ cd ogg
+ git describe --tags | sed 's/^v//'
+}
+
+prepare() {
+ cd ogg
+}
+
+build() {
+ local CFLAGS="$CPPFLAGS $CFLAGS" CXXFLAGS="$CPPFLAGS $CXXFLAGS"
+ cmake -Hogg -Bbuild -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_SHARED_LIBS=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="${pkgdir}" cmake --build build --target install
+ install -Dm 644 ogg/COPYING -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+ install -Dm 644 ogg/ogg.m4 -t "${pkgdir}"/usr/share/aclocal/
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list