# Maintainer: Tony Lambiris pkgname=cpdup pkgver=1.22 pkgrel=1 pkgdesc="Tool to mirror filesystems retaining permissions, flags, ownership, and utimes" url="https://github.com/DragonFlyBSD/cpdup" license=('BSD') arch=('i686' 'x86_64') depends=('libbsd') makedepends=('pkg-config') source=(https://github.com/DragonFlyBSD/cpdup/archive/v${pkgver}.tar.gz) sha256sums=('2dbfa16a080f8dce1be64a511e785b8491e59be8a0f3d1cef035d08147cc4793') prepare() { cd "${pkgname}-${pkgver}" # HACK I can't use -D since __unused is used as variable name in some system headers sed -i 's/__unused/__attribute__((__unused__))/' src/*.c } build() { cd "${pkgname}-${pkgver}" make } package() { cd "${pkgname}-${pkgver}" make PREFIX="${pkgdir}/usr" install install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }