aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-10-05 12:30:27 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-05 12:30:27 +0200
commit741855d03fe1bb14e09129850c21b71160f70d25 (patch)
treef5d2adcf7cc349927d8a1cfa86e3453a1feb4400
parent0bd9525c978418b828b0b4a836fe614561afb584 (diff)
downloadaports-741855d03fe1bb14e09129850c21b71160f70d25.tar.bz2
aports-741855d03fe1bb14e09129850c21b71160f70d25.tar.xz
testing/apk-readme: new aport
display README.alpine after install/upgrade
-rw-r--r--testing/apk-readme/APKBUILD36
-rw-r--r--testing/apk-readme/apk-readme.trigger7
2 files changed, 43 insertions, 0 deletions
diff --git a/testing/apk-readme/APKBUILD b/testing/apk-readme/APKBUILD
new file mode 100644
index 0000000000..1d5c5a0b84
--- /dev/null
+++ b/testing/apk-readme/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=apk-readme
+pkgver=0.1
+pkgrel=0
+pkgdesc="Display README.alpine after packages are installed"
+url="http://alpinelinux.org"
+arch="noarch"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+triggers="apk-readme.trigger=/usr/share/*/README.alpine"
+subpackages=""
+source=""
+
+_builddir=
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ return 0
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
diff --git a/testing/apk-readme/apk-readme.trigger b/testing/apk-readme/apk-readme.trigger
new file mode 100644
index 0000000000..1cf4f0b58d
--- /dev/null
+++ b/testing/apk-readme/apk-readme.trigger
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i; do
+ echo "### $i:"
+ cat $i
+done
+