pkgname: libatomic-ops pkgver: '7.6.12' pkgrel: '2' pkgdesc: Implementations for atomic memory update operations on a number of architectures. url: 'http://www.hpl.hp.com/research/linux/atomic_ops/' arch: x86_64 depends: [] makedepends: [] source: - 'https://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-${pkgver}.tar.gz' sha256sums: - f0ab566e25fce08b560e1feab6a3db01db4a38e5bc687804334ef3920c549f3e build: | cd libatomic_ops-${pkgver} ./configure --prefix=/usr \ --enable-shared \ --disable-static \ --docdir=/usr/share/doc/libatomic_ops-${pkgver} make make DESTDIR=${PKGDIR} install rm -vrf ${PKGDIR}/usr/share/libatomic_ops # Obsolet lib rm -f ${PKGDIR}/usr/lib/libatomic_ops.la rm -f ${PKGDIR}/usr/lib/libatomic_ops_gpl.la package: | true update: | local url ext name name=libatomic_ops url="http://www.ivmaisoft.com/_bin/atomic_ops/" ext=".tar.gz" 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