[arch-commits] Commit in cdrtools/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 15:39:16 UTC 2020


    Date: Tuesday, July 7, 2020 @ 15:39:16
  Author: felixonmars
Revision: 658971

archrelease: copy trunk to community-staging-x86_64

Added:
  cdrtools/repos/community-staging-x86_64/
  cdrtools/repos/community-staging-x86_64/PKGBUILD
    (from rev 658970, cdrtools/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: cdrtools/repos/community-staging-x86_64/PKGBUILD (from rev 658970, cdrtools/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 15:39:16 UTC (rev 658971)
@@ -0,0 +1,57 @@
+# 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:



More information about the arch-commits mailing list