[arch-commits] Commit in cdrtools/repos/community-x86_64 (3 files)
Jerome Leclanche
jleclanche at archlinux.org
Thu Nov 12 11:58:07 UTC 2020
Date: Thursday, November 12, 2020 @ 11:58:07
Author: jleclanche
Revision: 751581
archrelease: copy trunk to community-x86_64
Added:
cdrtools/repos/community-x86_64/PKGBUILD
(from rev 751580, cdrtools/trunk/PKGBUILD)
cdrtools/repos/community-x86_64/cdrtools.install
(from rev 751580, cdrtools/trunk/cdrtools.install)
Deleted:
cdrtools/repos/community-x86_64/PKGBUILD
------------------+
PKGBUILD | 115 ++++++++++++++++++++++++++---------------------------
cdrtools.install | 5 ++
2 files changed, 63 insertions(+), 57 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-12 11:57:59 UTC (rev 751580)
+++ PKGBUILD 2020-11-12 11:58:07 UTC (rev 751581)
@@ -1,57 +0,0 @@
-# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
-pkgname=cdrtools
-pkgver=3.02a09
-pkgrel=3
-pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning"
-arch=('x86_64')
-url="http://cdrecord.org/"
-license=('CDDL')
-depends=('acl' 'libcap')
-conflicts=('cdrkit')
-provides=('cdrkit')
-replaces=('cdrkit')
-options=(!makeflags)
-backup=('etc/default/cdrecord' 'etc/default/rscsi')
-source=(https://downloads.sourceforge.net/cdrtools/cdrtools-$pkgver.tar.bz2)
-sha256sums=('aa28438f458ef3f314b79f2029db27679dae1d5ffe1569b6de57742511915e81')
-
-build() {
- cd "$srcdir"/cdrtools-${pkgver%%a*}
- sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux
- sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux
- # install rscsi to /usr/bin instead of /usr/sbin
- sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
-
- export GMAKE_NOWARN=true
- make INS_BASE=/usr INS_RBASE=/
-}
-
-check() {
- cd "$srcdir"/cdrtools-${pkgver%%a*}
- make tests
-}
-
-package() {
- cd "$srcdir"/cdrtools-${pkgver%%a*}
-
- export GMAKE_NOWARN=true
- make INS_BASE=/usr INS_RBASE=/ DESTDIR="$pkgdir" install
-
- # remove unneeded files that may cause conflicts
- rm -rf "$pkgdir"/usr/include
- rm -rf "$pkgdir"/usr/lib/{*.a,profiled}
- rm -rf "$pkgdir"/usr/share/man/man3
-
- # autoload 'sg' module needed by cdrecord
- install -d -m755 "$pkgdir"/usr/lib/modules-load.d/
- echo sg > "$pkgdir"/usr/lib/modules-load.d/cdrecord.conf
-
- # create symlinks for cdrkit compatibility
- cd "$pkgdir"/usr/bin
- ln -s cdrecord wodim
- ln -s readcd readom
- ln -s mkisofs genisoimage
- ln -s cdda2wav icedax
-}
-
-# vim:set ts=2 sw=2 et:
Copied: cdrtools/repos/community-x86_64/PKGBUILD (from rev 751580, cdrtools/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-11-12 11:58:07 UTC (rev 751581)
@@ -0,0 +1,58 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+pkgname=cdrtools
+pkgver=3.02a09
+pkgrel=4
+pkgdesc="Original cdrtools supporting CD, DVD and BluRay burning"
+arch=('x86_64')
+url="http://cdrecord.org/"
+license=('CDDL')
+depends=('acl' 'libcap')
+conflicts=('cdrkit')
+provides=('cdrkit')
+replaces=('cdrkit')
+options=(!makeflags)
+backup=('etc/default/cdrecord' 'etc/default/rscsi')
+source=(https://downloads.sourceforge.net/cdrtools/cdrtools-$pkgver.tar.bz2)
+sha256sums=('aa28438f458ef3f314b79f2029db27679dae1d5ffe1569b6de57742511915e81')
+install=cdrtools.install
+
+build() {
+ cd "$srcdir"/cdrtools-${pkgver%%a*}
+ sed -i 's|/opt/schily|/usr|g' DEFAULTS/Defaults.linux
+ sed -i 's|DEFINSGRP=.*|DEFINSGRP=root|' DEFAULTS/Defaults.linux
+ # install rscsi to /usr/bin instead of /usr/sbin
+ sed -i 's|INSDIR=.*|INSDIR=bin|' rscsi/Makefile
+
+ export GMAKE_NOWARN=true
+ make INS_BASE=/usr INS_RBASE=/
+}
+
+check() {
+ cd "$srcdir"/cdrtools-${pkgver%%a*}
+ make tests
+}
+
+package() {
+ cd "$srcdir"/cdrtools-${pkgver%%a*}
+
+ export GMAKE_NOWARN=true
+ make INS_BASE=/usr INS_RBASE=/ DESTDIR="$pkgdir" install
+
+ # remove unneeded files that may cause conflicts
+ rm -rf "$pkgdir"/usr/include
+ rm -rf "$pkgdir"/usr/lib/{*.a,profiled}
+ rm -rf "$pkgdir"/usr/share/man/man3
+
+ # autoload 'sg' module needed by cdrecord
+ install -d -m755 "$pkgdir"/usr/lib/modules-load.d/
+ echo sg > "$pkgdir"/usr/lib/modules-load.d/cdrecord.conf
+
+ # create symlinks for cdrkit compatibility
+ cd "$pkgdir"/usr/bin
+ ln -s cdrecord wodim
+ ln -s readcd readom
+ ln -s mkisofs genisoimage
+ ln -s cdda2wav icedax
+}
+
+# vim:set ts=2 sw=2 et:
Copied: cdrtools/repos/community-x86_64/cdrtools.install (from rev 751580, cdrtools/trunk/cdrtools.install)
===================================================================
--- cdrtools.install (rev 0)
+++ cdrtools.install 2020-11-12 11:58:07 UTC (rev 751581)
@@ -0,0 +1,5 @@
+post_install() {
+ setcap cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep /usr/bin/cdrecord
+ setcap cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/cdda2wav
+ setcap cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep /usr/bin/readcd
+}
More information about the arch-commits
mailing list