[aur-general] Feedback request
Andrew Chen
andrew.chuanye.chen at gmail.com
Tue Sep 22 10:21:28 UTC 2015
On Sep 22, 2015 10:04 PM, "Dmitriy Morozov" <dmorozov.mailbox at gmail.com>
wrote:
>
> I've made a Qt 5 port of qPutty (which is in turn a Qt 4 wrapper for
putty,
> famous SSH/Telmet client). qPutty was in aur3 as orphan for some time and
> was dropped. One of the main goals was not only to port it to Qt 5, but
> also to be able to use recent putty versions which required lots of qPutty
> code to be modified. Actually I've already pushed this PKGBUILD to AUR
> since namcap is OK about it. The thing in question is fetching putty
> sources which are being used for building, but putty is not compiled as
> project itself. Please see PKGBUILD below and thanks in advance.
>
> # Maintainer: Dmitriy Morozov <dmorozov.mailbox at gmail.com>
>
> pkgname=qputty-qt5-git
> pkgver=501
> pkgrel=1
> pkgdesc="A Qt 5 port for putty, the free telnet/ssh client"
> arch=('i686' 'x86_64')
> url="https://github.com/dsmorozov/qputty-qt5"
> license=('MIT LGPL3')
> depends=('glibc' 'gcc-libs' 'qt5-base' 'qt5-x11extras' 'libgssglue')
> makedepends=('git')
> conflicts=('qputty')
> source=('git://github.com/dsmorozov/qputty-qt5.git')
> md5sums=('SKIP')
>
> pkgver() {
> cd "$srcdir/${pkgname%-git}"
> printf "%s" "$(git describe --tags)"
> }
>
> prepare() {
> cd "$srcdir"
> # Fetch putty sources
> git clone git://git.tartarus.org/simon/putty.git
> cd putty
> git checkout tags/0.65
> }
>
> build() {
> cd "$srcdir/${pkgname%-git}"
> qmake
> make
> }
>
> package() {
> cd $srcdir/${pkgname%-git}
> install -Dm0755 qPutty "$pkgdir/usr/bin/qPutty"
> install -Dm0644 qPutty.desktop
> "$pkgdir/usr/share/applications/qPutty.desktop"
> install -Dm0644 icons/qputty.svgz
> "$pkgdir/usr/share/icons/hicolor/scalable/apps/qputty.svgz"
> install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/qputty-qt5/LICENSE"
> }
You should consider git submodules. It would make manually building your
project from source easier, and make your pkgbuild look cleaner.
More information about the aur-general
mailing list