Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages / 
mandoc


Commits:
c3b10ee2 by Caleb Maclennan at 2024-03-01T15:20:47+03:00
upgpkg: 1.14.6-4: Restyle

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = mandoc
        pkgdesc = A suite of tools compiling mdoc from the OpenBSD project
        pkgver = 1.14.6
-       pkgrel = 3
+       pkgrel = 4
        url = https://mdocml.bsd.lv
        arch = x86_64
        license = ISC


=====================================
PKGBUILD
=====================================
@@ -6,51 +6,48 @@
 
 pkgname=mandoc
 pkgver=1.14.6
-pkgrel=3
+pkgrel=4
 pkgdesc='A suite of tools compiling mdoc from the OpenBSD project'
-arch=('x86_64')
+arch=(x86_64)
 url='https://mdocml.bsd.lv'
-license=('ISC')
-depends=('zlib')
-makedepends=('less')
+license=(ISC)
+depends=(zlib)
+makedepends=(less)
 optdepends=('less: default pager')
-provides=('man')
-conflicts=('man')
-source=("${url}/snapshots/${pkgname}-${pkgver}.tar.gz"
-        'configure.local'
-        'mandoc.service'
-        'mandoc.timer')
+provides=(man)
+conflicts=(man)
+_archive="$pkgname-$pkgver"
+source=("$url/snapshots/$_archive.tar.gz"
+        configure.local
+        mandoc.service
+        mandoc.timer)
 sha256sums=('8bf0d570f01e70a6e124884088870cbed7537f36328d512909eb10cd53179d9c'
             '383772d5dd7c51319588ac4b63d4e7c452490568f6a3e905d118fdd6c4aa8a68'
             '2091411d5f87a3c371a5ba74b4773d1e454046446fa2cb045485979e52419bb6'
             '6b8df810386c581800074adb89c17c7e22dc5784e71e6069ebb039183b59df83')
 
 prepare() {
-    cd ${pkgname}-${pkgver}
+    cd "$_archive"
     cp ../configure.local .
 }
 
 build() {
-    cd ${pkgname}-${pkgver}
-
+    cd "$_archive"
     # apply CFLAGS and LDFLAGS from makepkg.conf
     {
         echo "CFLAGS=${CFLAGS@Q}"
         echo "LDFLAGS=${LDFLAGS@Q}"
     } >> configure.local
-
     ./configure
     make
 }
 
 package() {
-    cd ${pkgname}-${pkgver}
-
-    DESTDIR="${pkgdir}" make install
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
-    install -Dm644 "${srcdir}"/mandoc.timer 
"${pkgdir}"/usr/lib/systemd/system/mandoc.timer
-    install -Dm644 "${srcdir}"/mandoc.service 
"${pkgdir}"/usr/lib/systemd/system/mandoc.service
-    install -dm755 "${pkgdir}"/usr/lib/systemd/system/timers.target.wants
+    cd "$_archive"
+    DESTDIR="$pkgdir" make install
+    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+    install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" ../mandoc.timer
+    install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" ../mandoc.service
+    install -dm0755 "$pkgdir/usr/lib/systemd/system/timers.target.wants"
     ln -s ../mandoc.timer 
"${pkgdir}"/usr/lib/systemd/system/timers.target.wants/mandoc.timer
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mandoc/-/commit/c3b10ee22aae11852db46f8edeb08f481bdf904a

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/mandoc/-/commit/c3b10ee22aae11852db46f8edeb08f481bdf904a
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to