X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by lists.alpinelinux.org (Postfix) with ESMTP id 0D8F65C334D for ; Tue, 21 Feb 2017 09:45:08 +0000 (GMT) Received: from piha.riseup.net (unknown [10.0.1.163]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id 7C5191A21D0 for ; Tue, 21 Feb 2017 09:45:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1487670307; bh=xGFmVGhnEHqtu8V13I/Tfypp+ETG6tt+c1r9PYUnk/0=; h=From:To:Cc:Subject:Date:From; b=A1OdtWbhyZoSzCzLpPtnqP9+OqTtyp8WszT5H911omMnTLS8xlRqNR8A8/MYb7Kpf 95eIdr+wPWLB0c0skX3YE9tZKxvOguBnJ2UuIFJBm9Qwe2WQVKAPTPF8w1uafezyzj 3iQoWf4bgV/BzAXsoQEYKTdCVMebmSQcjEgWEYdE= Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: pickfire) with ESMTPSA id 401851C05EE From: Ivan Tham To: alpine-aports@lists.alpinelinux.org Cc: Ivan Tham Subject: [alpine-aports] [PATCH] testing/opencc: new aport Date: Tue, 21 Feb 2017 17:44:53 +0800 Message-Id: <20170221094453.3586-1-pickfire@riseup.net> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: http://opencc.byvoid.com/ Open Chinese Convert --- testing/opencc/APKBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testing/opencc/APKBUILD diff --git a/testing/opencc/APKBUILD b/testing/opencc/APKBUILD new file mode 100644 index 0000000000..bb16cb40ef --- /dev/null +++ b/testing/opencc/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Ivan Tham +# Maintainer: Ivan Tham +pkgname=opencc +_pkgname=OpenCC +pkgver=ver.1.0.5 +pkgrel=0 +pkgdesc="Open Chinese Convert" +url="http://opencc.byvoid.com/" +arch="all" +license="ASL 2.0" +makedepends="cmake doxygen" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/BYVoid/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver/build" + +build() { + mkdir -p "$builddir" && cd "$builddir" + cmake .. -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_DOCUMENTATION=on \ + -DBUILD_TESTING=off || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + + mkdir -p "$pkgdir"-doc/usr/share/doc + mv "$pkgdir"/usr/share/$pkgname/doc "$pkgdir"-doc/usr/share/doc/$pkgname +} + +sha512sums="3fbefbafe5c3c2491032158577ab97b5a3edf6ea98a03a7250deba082b72c3112ad4a3396d1a469936ec32e1d141f0a2236001c2891ac9c793add2b082596cc1 ver.1.0.5.tar.gz" -- 2.11.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---