Files
extra/liblockfile/PKGBUILD
2025-06-22 20:39:04 -05:00

26 lines
892 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=liblockfile
pkgver=1.17
pkgrel=1
pkgdesc="a library with NFS-safe locking functions"
arch=('i686' 'x86_64')
license=('GPL-2')
url='https://packages.debian.org/unstable/libs/liblockfile1'
depends=('glibc')
source=("https://deb.debian.org/debian/pool/main/libl/liblockfile/liblockfile_${pkgver}.orig.tar.gz")
sha512sums=('d191be2eb3126cfbd65ee3ed85b436aa3872f014424d2c09596996f3e94bc608c81665b59e8bf23bedc6c65db70df4c56415ad56db63233550eece612b8db51c')
build() {
cd ${pkgname}-${pkgver}
LDCONFIG=/bin/true ./configure --enable-shared --prefix=/usr --mandir=/usr/share/man
make
}
package() {
cd ${pkgname}-${pkgver}
mkdir -p "$pkgdir"/usr/{lib,bin,include,share/man/man1,share/man/man3}
make install prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man
install -Dm 644 licenses/GPL-2 -t "$pkgdir/usr/share/licenses/$pkgname"
}