blob: 7988a8cb798e0895e4bce60f8aa3343687e9320c (
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
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Erich Eckner <arch at eckner dot net>
# Contributor: L <alaviss 0 at gmail dot com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Valeriy Lyasotskiy <onestep@ukr.net>
# Contributor: Jan Willemson <janwil@hot.ee>
# Contributor: Hugo Ideler <hugoideler@dse.nl>
# Contributor: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
# Original PKGBUILD: Andre Naumann <anaumann@SPARCed.org>
# See http://bbs.archlinux.org/viewtopic.php?t=9318&highlight=fpc
pkgname='fpc-src-svn'
pkgver=3.3.1.r15504.3b8fcfc6
_pkgver="${pkgver%.r*}"
_commit="${pkgver##*.}"
pkgrel=1
arch=('i486' 'i686' 'pentium4' 'x86_64')
url='http://www.freepascal.org/'
license=('GPL' 'LGPL' 'custom')
depends=()
makedepends=('git')
pkgdesc='Sources for the Free Pascal Compiler (required by the Lazarus IDE)'
options=('!strip')
conflicts=('fpc-src')
provides=("fpc-src=${pkgver}")
source=('git+https://gitlab.com/freepascal.org/fpc/source.git#commit='"${_commit}")
sha512sums=('d8100e2ba5ba86d3c64a7f5007b0137540bb551b7084e2c735db2b48177976214be45a3067c5a607f23e99b379055933bae074ac6a93b3f0f256baca274c48f1')
pkgver() {
cd "${srcdir}"/source
last_version=$(
git tag \
| grep '^[0-9.]\+$' \
| sort -V \
| tail -n1
)
_commit=$(
git rev-parse "${_commit}" \
| cut -c1-8
)
revision=$(
git rev-list --count "${_commit}" "^${last_version}"
)
printf '%s.r%s.%s' \
"${last_version}" \
"${revision}" \
"${_commit}"
}
package() {
install -dm755 "${pkgdir}"/usr/lib/fpc/src
mv "${srcdir}"/source/* "${pkgdir}"/usr/lib/fpc/src/
}
|