upg rsync add apulse

This commit is contained in:
joborun linux 2022-04-18 04:56:00 +03:00
parent f7e512965a
commit ecf3bda5f3
10 changed files with 146 additions and 42 deletions

54
apulse/PKGBUILD Normal file
View File

@ -0,0 +1,54 @@
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=apulse
pkgver=0.1.13
pkgrel=01
pkgdesc='PulseAudio emulation for ALSA'
arch=(x86_64)
url='https://github.com/i-rinat/apulse'
depends=(alsa-lib glib2)
makedepends=(cmake)
install=apulse.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
'asoundrc.sample')
prepare() {
cd apulse-${pkgver}
mkdir -p build
}
build() {
cd apulse-${pkgver}/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd apulse-${pkgver}/build
make DESTDIR="${pkgdir}/" install
# sample asoundrc
install -Dm644 ../../${source[1]} \
"${pkgdir}/usr/share/${pkgname}/${source[1]}"
# license
install -Dm644 ../LICENSE.MIT \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
#---- license gpg-key sha256sums ----
license=('custom:MIT')
sha256sums=(9234ec4e10e408b9c01d5f4ea768ad1fc15494217c932db2c435202a9c7b5efd # apulse-0.1.13.tar.gz
e851197ec9ebff528154210751cd6d5c426abfc2b1aa34343580407b1ea789a4) # asoundrc.sample

46
apulse/PKGBUILD-aur Normal file
View File

@ -0,0 +1,46 @@
# Maintainer: Christian Hesse <arch@eworm.de>
# Contributor: speps <speps at aur dot archlinux dot org>
pkgname=apulse
pkgver=0.1.13
pkgrel=1
pkgdesc='PulseAudio emulation for ALSA'
arch=('i686' 'x86_64')
url='https://github.com/i-rinat/apulse'
license=('custom:MIT')
depends=('alsa-lib' 'glib2')
makedepends=('cmake')
install=apulse.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
'asoundrc.sample')
sha256sums=('9234ec4e10e408b9c01d5f4ea768ad1fc15494217c932db2c435202a9c7b5efd'
'e851197ec9ebff528154210751cd6d5c426abfc2b1aa34343580407b1ea789a4')
prepare() {
cd apulse-${pkgver}
mkdir -p build
}
build() {
cd apulse-${pkgver}/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd apulse-${pkgver}/build
make DESTDIR="${pkgdir}/" install
# sample asoundrc
install -Dm644 ../../${source[1]} \
"${pkgdir}/usr/share/${pkgname}/${source[1]}"
# license
install -Dm644 ../LICENSE.MIT \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

13
apulse/apulse.install Normal file
View File

@ -0,0 +1,13 @@
post_install() {
cat << EOF
For using PulseAudio emulation (ex. in skype):
1. create a proper .asoundrc
$ cp /usr/share/apulse/asoundrc.sample ~/.asoundrc
2. run apulse <program-name> [parameters]
$ apulse skype
EOF
}

15
apulse/asoundrc.sample Normal file
View File

@ -0,0 +1,15 @@
pcm.!default {
type plug
slave.pcm "asymed"
}
pcm.asymed {
type asym
playback.pcm {
@func getenv
vars [ ALSAPCM ]
default "dmix"
}
capture.pcm "dsnoop"
}

1
apulse/clean Normal file
View File

@ -0,0 +1 @@
rm -rf {src,pkg,apulse*.tar.gz}

2
apulse/deps Normal file
View File

@ -0,0 +1,2 @@
cmake
alsa-lib

4
apulse/time Normal file
View File

@ -0,0 +1,4 @@
real 0m3.322s
user 0m5.378s
sys 0m0.746s

View File

@ -6,9 +6,9 @@
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=rsync
_tag='1a2d16c0bd161481cbf0acc06dceb1ce788f0d09' # git rev-parse v${pkgver}
pkgver=3.2.3
pkgrel=04
_tag='db2a0aed76cfedeb87179017167c29cc2ab7a1e8' # git rev-parse v${pkgver}
pkgver=3.2.4
pkgrel=01
pkgdesc='A fast and versatile file copying tool for remote and local files w/o systemd'
arch=('x86_64')
url='https://rsync.samba.org/'
@ -20,22 +20,6 @@ backup=('etc/rsyncd.conf'
source=("git+https://github.com/WayneD/rsync#tag=${_tag}?signed"
'rsyncd.conf')
prepare() {
cd "$srcdir/rsync"
# rsync-ssl: Verify the hostname in the certificate when using openssl.
git cherry-pick -n c3f7414c450faaf6a8281cc4a4403529aeb7d859
# Force HAVE_LCHMOD off for Linux (for now).
# Work around glibc's lchmod() issue a better way.
git cherry-pick -n \
85b8dc8abaca96fc3ea7421e09101b6ac41b6718 \
9dd62525f3b98d692e031f22c02be8f775966503
# Add test and fix regression for --delay-updates (#192) (#204)
git cherry-pick -n efc81c93a9fca45ba08119145a2d282f477f01b4
}
build() {
cd "$srcdir/rsync"
@ -50,7 +34,6 @@ build() {
check() {
cd "$srcdir/rsync"
make test
}
@ -60,9 +43,6 @@ package() {
make DESTDIR="$pkgdir" install
install -Dm0644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf"
install -Dm0644 packaging/lsb/rsync.xinetd "$pkgdir/etc/xinetd.d/rsync"
# install -Dm0644 packaging/systemd/rsync.service "$pkgdir/usr/lib/systemd/system/rsyncd.service"
# install -Dm0644 packaging/systemd/rsync.socket "$pkgdir/usr/lib/systemd/system/rsyncd.socket"
# install -Dm0644 packaging/systemd/rsync@.service "$pkgdir/usr/lib/systemd/system/rsyncd@.service"
install -Dm0755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync"
}
@ -74,3 +54,4 @@ validpgpkeys=('0048C8B026D4C96F0E589C2F6C859FB14B96A8C5') # Wayne Davison <wayne
sha256sums=('SKIP'
'733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b')

View File

@ -1,9 +1,9 @@
# Maintainer: Christian Hesse <mail@eworm.de>
pkgname=rsync
_tag='1a2d16c0bd161481cbf0acc06dceb1ce788f0d09' # git rev-parse v${pkgver}
pkgver=3.2.3
pkgrel=4
_tag='db2a0aed76cfedeb87179017167c29cc2ab7a1e8' # git rev-parse v${pkgver}
pkgver=3.2.4
pkgrel=1
pkgdesc='A fast and versatile file copying tool for remote and local files'
arch=('x86_64')
url='https://rsync.samba.org/'
@ -19,22 +19,6 @@ source=("git+https://github.com/WayneD/rsync#tag=${_tag}?signed"
sha256sums=('SKIP'
'733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b')
prepare() {
cd "$srcdir/rsync"
# rsync-ssl: Verify the hostname in the certificate when using openssl.
git cherry-pick -n c3f7414c450faaf6a8281cc4a4403529aeb7d859
# Force HAVE_LCHMOD off for Linux (for now).
# Work around glibc's lchmod() issue a better way.
git cherry-pick -n \
85b8dc8abaca96fc3ea7421e09101b6ac41b6718 \
9dd62525f3b98d692e031f22c02be8f775966503
# Add test and fix regression for --delay-updates (#192) (#204)
git cherry-pick -n efc81c93a9fca45ba08119145a2d282f477f01b4
}
build() {
cd "$srcdir/rsync"

4
rsync/time Normal file
View File

@ -0,0 +1,4 @@
real 1m35.339s
user 0m39.030s
sys 0m5.136s