Date: Monday, August 29, 2022 @ 13:48:53 Author: hashworks Revision: 1285197
upgpkg: srs 4.0_r2-2 Added: srs/trunk/PKGBUILD srs/trunk/archlinux.patch -----------------+ PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ archlinux.patch | 13 +++++++++++++ 2 files changed, 56 insertions(+) Added: PKGBUILD =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-08-29 13:48:53 UTC (rev 1285197) @@ -0,0 +1,43 @@ +# Maintainer: Justin Kromlinger <[email protected]> +# Contributor: Dragutin Cirkovic <[email protected]> +# Contributor: heinrich5991 <[email protected]> + +pkgname=srs +pkgver=4.0_r2 +pkgrel=2 +pkgdesc="High performance realtime video server" +_pkgcommit=fe2002794f83f1947176ca157190d83c84761dc5 +arch=('x86_64') +url="https://github.com/ossrs/srs" +license=('MIT') +depends=('gcc-libs' + 'openssl' + 'srs-state-threads') +makedepends=('zlib' 'unzip' 'net-tools' 'python' 'git') +backup=(etc/srs/srs.conf) +options=('docs') +source=("git+https://github.com/ossrs/srs/#commit=${_pkgcommit}" + "archlinux.patch") +sha256sums=('SKIP' + '01af4fc5b393fe4c590215a8449ab10e7aefe1e377962ca35405baaa2ed43a90') + +prepare() { + cd "${srcdir}"/srs/trunk + patch -p2 -i "${srcdir}"/archlinux.patch +} + +build() { + cd "${srcdir}"/srs/trunk + ./configure --prefix=/install --use-sys-ssl --use-shared-st + make + make DESTDIR="${srcdir}" install +} + +package() { + install -Dm644 "${srcdir}"/srs/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + cd "${srcdir}"/install + install -d "${pkgdir}"/usr/bin "${pkgdir}"/etc/srs + cp -r conf/. "${pkgdir}"/etc/srs + install -m755 objs/srs "${pkgdir}"/usr/bin/srs +} Added: archlinux.patch =================================================================== --- archlinux.patch (rev 0) +++ archlinux.patch 2022-08-29 13:48:53 UTC (rev 1285197) @@ -0,0 +1,13 @@ +diff --git a/trunk/auto/depends.sh b/trunk/auto/depends.sh +index b5d5aa62..a55d2478 100755 +--- a/trunk/auto/depends.sh ++++ b/trunk/auto/depends.sh +@@ -30,7 +30,7 @@ echo "Required tools are ok." + ##################################################################################### + # for Ubuntu, auto install tools by apt-get + ##################################################################################### +-OS_IS_UBUNTU=NO ++OS_IS_UBUNTU=YES + function Ubuntu_prepare() + { + if [ $SRS_CUBIE = YES ]; then
