summaryrefslogtreecommitdiffstats
path: root/qelly-git/PKGBUILD
blob: 8dd91612b6054f3bfa71385228b77607e0a35e9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: lantw44 (at) gmail (dot) com

pkgname=qelly-git
pkgver=1.0a.9.g2d54801
pkgrel=1
pkgdesc="Qelly is a Qt port of Nally"
arch=('x86_64' 'i686')
url="https://github.com/uranusjr/Qelly"
license=('GPL')
depends=('qt4' 'libqxt')
makedepends=()
conflicts=('qelly')
provides=('qelly')
source=("$pkgname::git+https://github.com/uranusjr/Qelly.git")
md5sums=('SKIP')

pkgver() {
    cd "$pkgname"
    local ver="$(git describe --long)"
    ver="${ver#v}"
    ver="${ver//-/.}"
    printf "%s" "$ver"
}

build() {
    cd "$pkgname"
    qmake-qt4
    make
}

package() {
    cd "$pkgname"
    mkdir -p "$pkgdir/usr/bin"
    install -m 755 "bin/Qelly" "$pkgdir/usr/bin"
}
style="color:#003cff"># $FreeBSD$ # PORTNAME= t1lib PORTVERSION= 5.1.2 PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= libs/graphics MAINTAINER= ports@FreeBSD.org COMMENT= A Type 1 Rasterizer Library for UNIX/X11 USE_GMAKE= yes USE_AUTOTOOLS= libtool ALL_TARGET= without_doc USE_LDCONFIG= yes .if !defined(WITHOUT_X11) USE_XORG= xaw CONFIGURE_ARGS+= --with-x PLIST_SUB+= X11="" .else CONFIGURE_ARGS+= --without-x PLIST_SUB+= X11="@comment " .endif post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|^LIBTOOL[ ]*=.*|LIBTOOL=${LIBTOOL}|g' @${REINPLACE_CMD} -e \ '/ALLSUBDIRS/s|$$(DOCSUBDIRS)||g' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e \ 's|_LT_CURRENT=.*$$|_LT_CURRENT=5|g' ${WRKSRC}/configure post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/t1lib_doc.pdf ${DOCSDIR} .endif .include <bsd.port.mk>