Commit 35f62ed4 authored by Sören Tempel's avatar Sören Tempel

community/cloc: moved from testing/

parent cab4a2f6
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> # Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=cloc pkgname=cloc
pkgver=1.70 pkgver=1.70
pkgrel=0 pkgrel=1
pkgdesc="Count lines of code" pkgdesc="Count lines of code"
url="https://github.com/AlDanial/cloc" url="https://github.com/AlDanial/cloc"
arch="noarch" arch="noarch"
license="GPL" license="GPL2"
depends="perl perl-algorithm-diff perl-regexp-common" depends="perl perl-algorithm-diff perl-regexp-common"
depends_dev="" depends_dev=""
makedepends="" makedepends=""
install="" install=""
subpackages="$pkgname-doc" subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/cloc/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver/Unix builddir="$srcdir"/$pkgname-$pkgver/Unix
build () { build () {
...@@ -20,8 +20,12 @@ build () { ...@@ -20,8 +20,12 @@ build () {
} }
package() { package() {
make DESTDIR="$pkgdir" -C "$builddir" \ cd "$builddir"
install || return 1 make DESTDIR="$pkgdir" install || return 1
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -Dm644 NEWS README AUTHORS \
"$pkgdir"/usr/share/doc/$pkgname/ || return 1
} }
md5sums="74e159c9957a6fba3e93b1501008f0fa cloc-1.70.tar.gz" md5sums="74e159c9957a6fba3e93b1501008f0fa cloc-1.70.tar.gz"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment