diff options
author | 7heo <7heo@mail.com> | 2016-08-29 15:27:05 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-29 15:40:35 +0200 |
commit | 6c38441d246ba76f0997ef2823b05b3a8f4ac520 (patch) | |
tree | db6bea22b8c58c9fa1ff53dacec6cfe56643865b /unmaintained | |
parent | 52e30c5c6ee1af72da8c70cbf87812bd1bce7891 (diff) | |
download | aports-6c38441d246ba76f0997ef2823b05b3a8f4ac520.tar.bz2 aports-6c38441d246ba76f0997ef2823b05b3a8f4ac520.tar.xz |
unmaintained/dvtm: improve APKBUILD
Diffstat (limited to 'unmaintained')
-rw-r--r-- | unmaintained/dvtm/APKBUILD | 26 | ||||
-rw-r--r-- | unmaintained/dvtm/Makefile.patch | 11 |
2 files changed, 22 insertions, 15 deletions
diff --git a/unmaintained/dvtm/APKBUILD b/unmaintained/dvtm/APKBUILD index 0a2acd1a01..60e4688ead 100644 --- a/unmaintained/dvtm/APKBUILD +++ b/unmaintained/dvtm/APKBUILD @@ -10,27 +10,23 @@ url="http://www.brain-dump.org/projects/dvtm/" license="MIT" makedepends="ncurses-dev ncurses" # we need ncurses for 'tic' subpackages="$pkgname-doc" -source="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz" - -_builddir="$srcdir"/$pkgname-$pkgver -prepare() { - cd "$_builddir" - sed -i Makefile \ - -e '/strip/d' \ - -e '/STRIP/d' \ - -e 's|\btic\b|tic -o ${DESTDIR}${PREFIX}/share/terminfo|g' || return 1 -} +source="http://www.brain-dump.org/projects/${pkgname}/${pkgname}-${pkgver}.tar.gz + Makefile.patch" +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd $builddir make || return 1 } package() { - cd "$_builddir" + cd $builddir make PREFIX=/usr DESTDIR="$pkgdir" install || return 1 } -md5sums="887e162a3abe2ad8e86caefab20cdd63 dvtm-0.15.tar.gz" -sha256sums="8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510 dvtm-0.15.tar.gz" -sha512sums="48a0c8fd6a50fe5d43414d0223c9f4b9920a31d42fe3bfc428ce1ae7d0e41a41ebe2597eae0824c7c76bfb0e32a13e440c8d5fcdb1886d55d6791fa3fe3fd77b dvtm-0.15.tar.gz" +md5sums="887e162a3abe2ad8e86caefab20cdd63 dvtm-0.15.tar.gz +ad82330a0f6cfe180ff6e9d0fc228378 Makefile.patch" +sha256sums="8f2015c05e2ad82f12ae4cf12b363d34f527a4bbc8c369667f239e4542e1e510 dvtm-0.15.tar.gz +75a6da45e4bbb501967d0360b8d3710f8414e3e5cf3a021a1b3aec600088f604 Makefile.patch" +sha512sums="48a0c8fd6a50fe5d43414d0223c9f4b9920a31d42fe3bfc428ce1ae7d0e41a41ebe2597eae0824c7c76bfb0e32a13e440c8d5fcdb1886d55d6791fa3fe3fd77b dvtm-0.15.tar.gz +0fea372311ebfada3a5166b65272372c8ca167e1fe0f9337b6a1be96bdf45149a0b2f323972f5216d071c5e0048c13d25c29f2e29f7b7dda8324ce9173cdd1c9 Makefile.patch" diff --git a/unmaintained/dvtm/Makefile.patch b/unmaintained/dvtm/Makefile.patch new file mode 100644 index 0000000000..c214214aa8 --- /dev/null +++ b/unmaintained/dvtm/Makefile.patch @@ -0,0 +1,11 @@ +--- a/Makefile ++++ b/Makefile +@@ -56,7 +56,7 @@ + @sed "s/VERSION/${VERSION}/g" < dvtm.1 > ${DESTDIR}${MANPREFIX}/man1/dvtm.1 + @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dvtm.1 + @echo installing terminfo description +- @TERMINFO=${TERMINFO} tic -s dvtm.info ++ @TERMINFO=${TERMINFO} tic -o ${DESTDIR}${PREFIX}/share/terminfo -s dvtm.info + + uninstall: + @echo removing executable file from ${DESTDIR}${PREFIX}/bin |