PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/core/tar/PAGBUILD.yaml main

47 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
pkgname: tar
pkgver: '1.35'
pkgrel: '4'
pkgdesc: 'The Tar package contains an archiving program.'
url: 'http://www.gnu.org/software/tar/tar.html'
arch: x86_64
depends: []
makedepends:
- texinfo

source:
- 'https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz'

sha256sums:
- 4d62ff37342ec7aed748535323930c7cf94acf71c3591882b26a7ea50f3edc16

build: |
  cd ${pkgname}-${pkgver}

  export CFLAGS="-O2 -g"
  export CXXFLAGS="-O2 -g"
  export CPPFLAGS=""
  unset LDFLAGS

  # --without-posix-acls: gnulib w tar 1.35 (najnowszy) deklaruje własne
  # acl_get_file_at/acl_set_file_at/acl_delete_def_file_at, a nowy libacl 2.4
  # (sys/acl.h) eksportuje je z inną sygnaturą (dodany int flags) ->
  # "conflicting types for 'acl_get_file_at'". Bez tej flagi xattrs.c nie
  # kompiluje się. ACL w tarze (`tar --acls`) jest wyłączone.
  FORCE_UNSAFE_CONFIGURE=1 \
  ./configure --prefix=/usr \
      --sbindir=/usr/bin \
      --libexecdir=/usr/lib/tar \
      --without-posix-acls

  # Użyj wszystkich dostępnych rdzeni
  make -j$(nproc)

  make DESTDIR=${PKGDIR} install

  # Generowanie HTML często wymaga poprawnie skonfigurowanego środowiska locale/texinfo.
  # Jeśli dokumentacja HTML nie jest kluczowa, pomiń make -C doc install-html.
  # Jeśli jest wymagana, upewnij się, że makeinfo nie wisi:
  make -C doc install-html docdir=${PKGDIR}/usr/share/doc/${pkgname}

package: |
  true