Name udftools
Description Linux tools for UDF filesystems and DVD/CD-R(W) drives
Version 2.3-2
Package Base udftools
Homepage https://github.com/pali/udftools
Maintainers ['Christian Hesse <eworm@archlinux.org>', 'Christian Hesse <mail@eworm.de>']
Contributors ['aksr <aksr@t-com.me>', 'lucck <lucck@ep.com.pl>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/udftools
Sources ['https://github.com/pali/udftools/releases/download/2.3/udftools-2.3.tar.gz']
Dependencies ['ncurses', 'readline']
Optional-Dependencies []
Build-Dependencies ['systemd']
Provides []
Builddate 17-03-2024 22:36:33
Architecture x86_64
Distro-Version
Licenses ['GPL']
Hash eac5047a3002a9f2064220e9766788fddf8ca469e43548a8bb2d4793af82b792
# Maintainer: Christian Hesse <mail@eworm.de>
# Contributor: lucck <lucck@ep.com.pl>
# Contributor: aksr <aksr at t-com dot me>

pkgname=udftools
pkgver=2.3
pkgrel=2
pkgdesc='Linux tools for UDF filesystems and DVD/CD-R(W) drives'
url='https://github.com/pali/udftools'
arch=('x86_64')
license=('GPL')
depends=('ncurses' 'readline')
makedepends=('systemd')
source=("https://github.com/pali/$pkgname/releases/download/$pkgver/$pkgname-${pkgver}.tar.gz")
sha256sums=('750dcf5c797765eb42265e0a56d1a99f97f94b7f6f4534263a5410503f0caf59')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  sed -i 's|/lib/|$(libdir)/|' pktsetup/Makefile.am
  autoreconf -fi
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure \
    --prefix=/usr \
    --mandir=/usr/share/man \
    --sbindir=/usr/bin
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}