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

recipes/utils/parted/PAGBUILD.yaml main

59 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
pkgname: parted
pkgver: '3.8'
pkgrel: '1'
pkgdesc: 'A program for creating, destroying, resizing, checking and copying partitions'
url: 'http://www.gnu.org/software/parted/index.shtml'
arch: x86_64
depends:
- lvm2
- ncurses
- readline
- util-linux
makedepends:
- grep
- sed
- lvm2
- 'util-linux'
- check
- texinfo

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

sha256sums:
- SKIP

build: |
  cd ${pkgname}-${pkgver}
  sed -i 's/do_version ()/do_version (PedDevice** dev, PedDisk** diskp)/' parted/parted.c
  ./configure --prefix=/usr \
  --sbindir=/usr/bin        \
  --disable-static

  make

  make DESTDIR=${PKGDIR} install

  make -C doc html
  makeinfo --html -o doc/html doc/parted.texi
  makeinfo --plaintext -o doc/parted.txt doc/parted.texi

  install -v -m755 -d ${PKGDIR}/usr/share/doc/parted-${pkgver}/html
  install -v -m644    doc/html/* \
  ${PKGDIR}/usr/share/doc/parted-${pkgver}/html
  install -v -m644 doc/{FAT,API.md,parted.{txt,html}} \
  ${PKGDIR}/usr/share/doc/parted-${pkgver}

  # Obsolets libs
  rm -f ${PKGDIR}/usr/lib/libparted{,-fs-resize}.la

package: |
  true

update: |
  local url ext
  url="https://ftp.gnu.org/gnu/${pkgname}/"
  ext=".tar.xz"
  lynx -read_timeout=20 -dump -listonly -nonumbers \
  $url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \
  sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1