[arch-commits] Commit in scdoc/repos (2 files)
Brett Cornwall
ainola at gemini.archlinux.org
Sat Feb 5 04:20:05 UTC 2022
Date: Saturday, February 5, 2022 @ 04:20:04
Author: ainola
Revision: 1126383
archrelease: copy trunk to community-testing-x86_64
Added:
scdoc/repos/community-testing-x86_64/
scdoc/repos/community-testing-x86_64/PKGBUILD
(from rev 1126382, scdoc/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: scdoc/repos/community-testing-x86_64/PKGBUILD (from rev 1126382, scdoc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-02-05 04:20:04 UTC (rev 1126383)
@@ -0,0 +1,33 @@
+# Maintainer: Ainola <ainola at archlinux.org>
+# Contributor: Drew DeVault
+
+pkgname=scdoc
+pkgver=1.11.2
+pkgrel=3
+license=('MIT')
+pkgdesc='Tool for generating roff manual pages'
+arch=('x86_64')
+url='https://git.sr.ht/~sircmpwn/scdoc/'
+options=(debug)
+source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/$pkgname/archive/$pkgver.tar.gz")
+sha512sums=('3fbf1a74b222dd88410636124e4b6ca73f7e77f67d512cf430a878fefcaa5c6c13a1e9f6c0c9654de15353f94bb1bd528665acebc2293bebb325501d1eb6cda3')
+
+build() {
+ cd "$pkgname-$pkgver"
+ # Upstream purposefully does not honor the user's LDFLAGS in order to keep
+ # scdoc static. As we gain no benefit to statically linking and, in fact,
+ # lose standard Arch practices (such as RELRO and PIE), we must override
+ # LDFLAGS
+ make PREFIX=/usr LDFLAGS="$LDFLAGS"
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ make check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+ install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
+}
More information about the arch-commits
mailing list