Add mintty package
This commit is contained in:
43
mintty/PKGBUILD
Normal file
43
mintty/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
||||
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
||||
|
||||
pkgname=mintty
|
||||
pkgver=1322
|
||||
pkgrel=1
|
||||
pkgdesc="Terminal emulator with native Windows look and feel"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL3')
|
||||
groups=('base')
|
||||
depends=('sh')
|
||||
makedepends=('subversion')
|
||||
url="https://code.google.com/p/mintty/"
|
||||
source=("mintty"::'svn+http://mintty.googlecode.com/svn/trunk/'
|
||||
mintty-add-msys-64bit.patch)
|
||||
#http://mintty.googlecode.com/files/${pkgname}-${pkgver}-src.tar.bz2
|
||||
sha1sums=('SKIP'
|
||||
'ce948d06bb62308e59966c7816301df415cc6074')
|
||||
#sha1sums=('54160819e1e6d37ef1a69aac0cb909ba10d30175')
|
||||
|
||||
pkgver() {
|
||||
cd "$srcdir/$pkgname"
|
||||
local ver="$(svnversion)"
|
||||
printf "%s" "${ver//[[:alpha:]]}"
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
patch -p1 -i ${srcdir}/mintty-add-msys-64bit.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
mkdir -p ${pkgdir}/usr/{bin,share}
|
||||
mkdir -p ${pkgdir}/usr/share/man/man1
|
||||
|
||||
install -m755 mintty.exe ${pkgdir}/usr/bin/mintty.exe
|
||||
install -m644 docs/mintty.1 ${pkgdir}/usr/share/man/man1/mintty.1
|
||||
}
|
||||
12
mintty/mintty-add-msys-64bit.patch
Normal file
12
mintty/mintty-add-msys-64bit.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
--- mintty/Makefile.orig 2013-11-01 08:19:44.606800000 +0400
|
||||
+++ mintty/Makefile 2013-11-01 08:22:53.762800000 +0400
|
||||
@@ -37,6 +37,9 @@
|
||||
else ifeq ($(TARGET), i686-pc-msys)
|
||||
platform := msys
|
||||
zip_files := docs/readme-msys.html
|
||||
+else ifeq ($(TARGET), x86_64-pc-msys)
|
||||
+ platform := msys
|
||||
+ zip_files := docs/readme-msys.html
|
||||
else
|
||||
$(error Target '$(TARGET)' not supported)
|
||||
endif
|
||||
Reference in New Issue
Block a user