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

33 lines
976 B
Bash

# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=uuid
_pkgname=ossp-uuid
pkgver=1.6.2
pkgrel=1
pkgdesc="OSSP Universally Unique Identifier"
arch=('i686' 'x86_64')
url='http://www.ossp.org/pkg/lib/uuid'
license=('Expat')
depends=('sh')
options=('!libtool')
source=("ftp://ftp.ossp.org/pkg/lib/uuid/${pkgname}-${pkgver}.tar.gz"
"ossp.patch")
sha512sums=('16c7e016ce08d7679cc6ee7dec43a886a8c351960acdde99f8f9b590c7232d521bc6e66e4766d969d22c3f835dcc2814fdecc44eef1cd11e7b9b0f9c41b5c03e'
'36d0ea6088c12a5e382c3098f11214b202e96f91e4efd5cac567d5a81e836f78eeb654f051c576a211ec2dd5337b1f0a20d4246e84a0842fce22ae5fa96e5be9')
build() {
unset PERL_MM_OPT
cd "${pkgname}-${pkgver}"
# rename because conflicts with util-linux
patch -p1 -i "${srcdir}"/ossp.patch
./configure --prefix=/usr --with-perl
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
install -Dm644 README -t "${pkgdir}/usr/share/licenses/$pkgname"
}