blob: 20ac5421a772a8b37eba2c4e0c78297c5ccc2447 (
plain)
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
36
37
38
39
40
41
42
43
|
# Maintainer: Johannes Loher <johannes dor loher at fg4f dot de>
_gitname=dfix
pkgname="${_gitname}-git"
pkgver=0.3.2.r0.g396fd6b
pkgrel=1
pkgdesc='Tool for automatically upgrading D source code - git version'
arch=('i686' 'x86_64')
url='https://github.com/dlang-community/dfix'
license=('custom: BSL')
groups=('dlang')
depends=('gcc-libs')
makedepends=('dmd' 'git')
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git://github.com/dlang-community/${_gitname}.git"
'http://www.boost.org/LICENSE_1_0.txt')
md5sums=('SKIP'
'e4224ccaecb14d942c71d31bef20d78c')
pkgver() {
cd "${srcdir}/${_gitname}"
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_gitname}"
git submodule update --init
}
build() {
cd "${srcdir}/${_gitname}"
make "${_gitname}_binary"
}
package(){
# binaries
mkdir -p "${pkgdir}/usr/bin"
install -m755 -t "${pkgdir}/usr/bin" "${srcdir}/${_gitname}/bin/${_gitname}"
# license
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install -m644 LICENSE_1_0.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|