Date: Thursday, November 10, 2022 @ 16:30:36
Author: blakkheim
Revision: 1346446
archrelease: copy trunk to community-staging-x86_64
Added:
smpeg/repos/community-staging-x86_64/
smpeg/repos/community-staging-x86_64/PKGBUILD
(from rev 1346445, smpeg/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: smpeg/repos/community-staging-x86_64/PKGBUILD (from rev 1346445,
smpeg/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-10 16:30:36 UTC (rev 1346446)
@@ -0,0 +1,33 @@
+# Maintainer: Jan Alexander Steffens (heftig) <[email protected]>
+# Contributor: Eric Belanger <[email protected]>
+# Contributor: Jan de Groot <[email protected]>
+
+pkgname=smpeg
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="SDL MPEG Player Library"
+arch=(x86_64)
+url="https://icculus.org/smpeg/"
+license=(LGPL)
+depends=(sdl)
+makedepends=(mesa glu)
+optdepends=('glu: to use glmovie')
+source=("https://github.com/icculus/smpeg/archive/refs/tags/release_${pkgver//./_}.tar.gz")
+sha256sums=('fdd431bd607efcf0f35789fb3105d7535d4f0e8b46e673e9c0051726e8d1e701')
+
+prepare() {
+ cd smpeg-release_${pkgver//./_}
+ ./autogen.sh
+}
+
+build() {
+ cd smpeg-release_${pkgver//./_}
+ CFLAGS+=" -Wno-error=narrowing"
+ ./configure --prefix=/usr --mandir=/usr/share/man --disable-static
+ make
+}
+
+package() {
+ cd smpeg-release_${pkgver//./_}
+ make DESTDIR="$pkgdir" install
+}