[arch-commits] Commit in deheader/repos (community-any community-any/PKGBUILD)
Jonas Witschel
diabonas at archlinux.org
Fri Oct 11 15:38:33 UTC 2019
Date: Friday, October 11, 2019 @ 15:38:32
Author: diabonas
Revision: 514934
archrelease: copy trunk to community-any
Added:
deheader/repos/community-any/
deheader/repos/community-any/PKGBUILD
(from rev 514933, deheader/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: deheader/repos/community-any/PKGBUILD (from rev 514933, deheader/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2019-10-11 15:38:32 UTC (rev 514934)
@@ -0,0 +1,29 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=deheader
+pkgver=1.6
+pkgrel=2
+pkgdesc='Find and optionally remove unneeded includes in C or C++ source files'
+arch=('any')
+url='http://www.catb.org/~esr/deheader/'
+license=('BSD')
+depends=('python')
+source=("$url/$pkgname-$pkgver.tar.gz")
+noextract=("$pkgname-$pkgver.tar.gz")
+sha512sums=('8278d845bf618aabe1fb1da77fb99f6de5efe76a8bd8ae12da0327c0e4df184b7c4d50b2ac2be4a3dd271b8b010818fef83cd80d81f2be2b04bd09e2fee1cea3')
+
+prepare() {
+ # Invalid hardlink in release tarball leads to bsdtar errors during extraction
+ bsdtar --extract -s '|deheader-1.6/deheader.1||R' --file "$pkgname-$pkgver.tar.gz"
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ install -Dm755 deheader -t "$pkgdir/usr/bin"
+ install -Dm644 deheader.1 -t "$pkgdir/usr/share/man/man1"
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list