diff --git a/apulse/PKGBUILD b/apulse/PKGBUILD new file mode 100644 index 0000000..174aebf --- /dev/null +++ b/apulse/PKGBUILD @@ -0,0 +1,54 @@ +#!/usr/bin/bash +# JOBoRun : Jwm OpenBox Obarun RUNit +# Maintainer : Joe Bo Run +# 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 diff --git a/apulse/PKGBUILD-aur b/apulse/PKGBUILD-aur new file mode 100644 index 0000000..ed19ed6 --- /dev/null +++ b/apulse/PKGBUILD-aur @@ -0,0 +1,46 @@ +# Maintainer: Christian Hesse +# Contributor: speps + +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" +} + diff --git a/apulse/apulse.install b/apulse/apulse.install new file mode 100644 index 0000000..ffc1caf --- /dev/null +++ b/apulse/apulse.install @@ -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 [parameters] + $ apulse skype + +EOF +} diff --git a/apulse/asoundrc.sample b/apulse/asoundrc.sample new file mode 100644 index 0000000..b529dc7 --- /dev/null +++ b/apulse/asoundrc.sample @@ -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" +} diff --git a/apulse/clean b/apulse/clean new file mode 100644 index 0000000..60e6777 --- /dev/null +++ b/apulse/clean @@ -0,0 +1 @@ +rm -rf {src,pkg,apulse*.tar.gz} diff --git a/apulse/deps b/apulse/deps new file mode 100644 index 0000000..411db01 --- /dev/null +++ b/apulse/deps @@ -0,0 +1,2 @@ +cmake +alsa-lib diff --git a/apulse/time b/apulse/time new file mode 100644 index 0000000..cf9f2e8 --- /dev/null +++ b/apulse/time @@ -0,0 +1,4 @@ + +real 0m3.322s +user 0m5.378s +sys 0m0.746s diff --git a/rsync/PKGBUILD b/rsync/PKGBUILD index 4eda8b7..c2ee8e7 100644 --- a/rsync/PKGBUILD +++ b/rsync/PKGBUILD @@ -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 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" diff --git a/rsync/time b/rsync/time new file mode 100644 index 0000000..a78203e --- /dev/null +++ b/rsync/time @@ -0,0 +1,4 @@ + +real 1m35.339s +user 0m39.030s +sys 0m5.136s