[arch-commits] Commit in dash/repos (3 files)

Levente Polyak anthraxx at archlinux.org
Mon Jun 7 18:49:21 UTC 2021


    Date: Monday, June 7, 2021 @ 18:49:21
  Author: anthraxx
Revision: 417318

archrelease: copy trunk to extra-x86_64

Added:
  dash/repos/extra-x86_64/
  dash/repos/extra-x86_64/PKGBUILD
    (from rev 417317, dash/trunk/PKGBUILD)
  dash/repos/extra-x86_64/dash.install
    (from rev 417317, dash/trunk/dash.install)

--------------+
 PKGBUILD     |   37 +++++++++++++++++++++++++++++++++++++
 dash.install |   11 +++++++++++
 2 files changed, 48 insertions(+)

Copied: dash/repos/extra-x86_64/PKGBUILD (from rev 417317, dash/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2021-06-07 18:49:21 UTC (rev 417318)
@@ -0,0 +1,37 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Dan McGee <dan at archlinux.org>
+
+pkgname=dash
+pkgver=0.5.11.4
+pkgrel=1
+pkgdesc='POSIX compliant shell that aims to be as small as possible'
+url='http://gondor.apana.org.au/~herbert/dash/'
+arch=('x86_64')
+license=('BSD')
+depends=('glibc' 'libedit' 'libedit.so')
+install=dash.install
+source=(https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/${pkgname}-${pkgver}.tar.gz)
+sha512sums=('6bfe9f4cd4c8d7f0ba0f71d6df1fb784b3a3960d4395f76604e46d21e13c16e504c0b73ee7e8113d64448d1db2c90f5dbcc19fd2a40b8a52d3e8f32ee3ad61ca')
+b2sums=('a40aad5713d37209d1ad423d606e5dccf9b953628f140058a054dd126ffd09b09d2fba0799e5c34b00337ccfb8db8cc73071b4aecd176f68dbb572491e76e2e9')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  autoreconf -fiv
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure \
+    --prefix=/usr \
+    --bindir=/usr/bin \
+    --mandir=/usr/share/man \
+    --exec-prefix="" \
+    --with-libedit
+  make V=1
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+  install -Dm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}

Copied: dash/repos/extra-x86_64/dash.install (from rev 417317, dash/trunk/dash.install)
===================================================================
--- extra-x86_64/dash.install	                        (rev 0)
+++ extra-x86_64/dash.install	2021-06-07 18:49:21 UTC (rev 417318)
@@ -0,0 +1,11 @@
+post_install() {
+	grep -q '/bin/dash' etc/shells || echo '/bin/dash' >> etc/shells
+}
+
+post_upgrade() {
+	post_install
+}
+
+pre_remove() {
+	sed -i '/^\/bin\/dash/d' etc/shells
+}



More information about the arch-commits mailing list