[arch-commits] Commit in (4 files)
Jonas Witschel
diabonas at archlinux.org
Fri Oct 11 15:38:15 UTC 2019
Date: Friday, October 11, 2019 @ 15:38:15
Author: diabonas
Revision: 514933
Move deheader 1.6 from the AUR to [community]
Added:
deheader/
deheader/repos/
deheader/trunk/
deheader/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Added: deheader/trunk/PKGBUILD
===================================================================
--- deheader/trunk/PKGBUILD (rev 0)
+++ deheader/trunk/PKGBUILD 2019-10-11 15:38:15 UTC (rev 514933)
@@ -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