author | David Runge
<dvzrv@archlinux.org> 2018-08-24 20:07:29 UTC |
committer | David Runge
<dvzrv@archlinux.org> 2018-08-24 20:07:29 UTC |
parent | 29791ac5b97a3e5e7bc30ade44a9bd9773329884 |
PKGBUILD | +22 | -19 |
diff --git a/PKGBUILD b/PKGBUILD index 082fc5c..7490e58 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,45 +1,48 @@ -# Maintainer: Ray Rashif <schiv@archlinux.org> -# Contributor: David Runge <dave@sleepmap.de> +# Maintainer: David Runge <dave@sleepmap.de> +# Contributor: Ray Rashif <schiv@archlinux.org> # Contributor: damir <damir@archlinux.org> # Contributor: Pajaro pkgname=liblo pkgver=0.29 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc="A lightweight OSC (Open Sound Control) implementation" arch=('x86_64') url="http://liblo.sourceforge.net/" -license=('GPL') +license=('LGPL2.1') depends=('glibc') makedepends=('doxygen') -source=("https://github.com/radarsat1/${pkgname}/releases/download/${pkgver}/$pkgname-$pkgver.tar.gz") +source=("https://github.com/radarsat1/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz") sha512sums=('11e20725a049c55c02ef8cd106be5802507f3df95422d8dad10009bdd1237af7517e3261c7336c3005e21ae8fd1e663badef46e4bae006c7af70520bdb336c7c') -build() { - cd "$srcdir/$pkgname-$pkgver" +prepare() { + cd "$pkgname-$pkgver" + autoreconf -vfi +} +build() { + cd "$pkgname-$pkgver" ./configure --prefix=/usr make } package() { - cd "$srcdir/$pkgname-$pkgver" - + cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install - # package docs, by request; the package size is less than 1MB - # reasonable to include even if it increases from a few KBs to 100s of KBs -- schiv - mkdir -p ${pkgdir}/usr/share/{man/man3,doc/${pkgname}/{html,latex},${pkgname}/examples} - # delete broken man pages rm -f doc/man/man3/_*.3 - # move all doc - install -Dm 644 doc/html/* ${pkgdir}/usr/share/doc/${pkgname}/html - install -Dm 644 doc/latex/* ${pkgdir}/usr/share/doc/${pkgname}/latex - install -Dm 644 doc/man/man3/*.3 ${pkgdir}/usr/share/man/man3 - install -Dm 644 examples/*.{cpp,c} ${pkgdir}/usr/share/${pkgname}/examples + # man pages + install -vDm 644 doc/man/man3/*.3 -t "${pkgdir}/usr/share/man/man3" + # examples + install -vDm 644 examples/*.{cpp,c} \ + -t "${pkgdir}/usr/share/${pkgname}/examples/" + # docs + install -vDm 644 doc/html/* -t "${pkgdir}/usr/share/doc/${pkgname}/html/" + install -vDm 644 doc/latex/* -t "${pkgdir}/usr/share/doc/${pkgname}/latex/" + install -vDm 644 {AUTHORS,ChangeLog,NEWS,README,TODO} \ + -t "${pkgdir}/usr/share/doc/${pkgname}/" } - # vim:set ts=2 sw=2 et: