blob: e9f0d8367959aa92d5f81d86c09a21865d289552 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
################################################################################
# Encoding: UTF-8 Tab size: 4 #
# #
# ARCH LINUX PACKAGE BUILD DESCRIPTION FILE #
# #
# Ordnung muss sein! Copyleft (Ɔ) 2018, Arch Linux #
################################################################################
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Dave Reisner <dreisner@archlinux.org>
# Contributor: Jack Black <ezamlinsky@gmail.com>
#==============================================================================#
# Package information #
#==============================================================================#
pkgname=('pacman-test')
pkgver=5.1.1
pkgrel=1
pkgdesc='A library-based package manager with dependency support (new features testing)'
url='http://www.archlinux.org/pacman/'
license=('GPL')
arch=('x86_64')
groups=('base' 'base-devel')
#==============================================================================#
# Package dependencies #
#==============================================================================#
depends=('archlinux-keyring' 'bash' 'glibc' 'libarchive' 'pacman-mirrorlist' 'curl' 'gpgme' 'openssl')
makedepends=('asciidoc')
checkdepends=('python2' 'fakechroot')
optdepends=('perl-locale-gettext: translation support in makepkg-template')
#==============================================================================#
# Package relations #
#==============================================================================#
provides=('pacman')
conflicts=('pacman')
#==============================================================================#
# Package miscellaneous options #
#==============================================================================#
backup=('etc/pacman.conf' 'etc/makepkg.conf')
#==============================================================================#
# Package sources and integrity #
#==============================================================================#
source=(
"git://github.com/ezamlinsky/pacman.git"
'pacman.conf'
'makepkg.conf'
)
validpgpkeys=(
'6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
'B8151B117037781095514CA7BBDFFC92306B1121' # Andrew Gregory (pacman) <andrew@archlinux.org>
)
sha256sums=(
'SKIP'
'b82e9c1073292766c2f49b5c771dddf37383f1151117ef9cd5e0c11047b4f3eb'
'650ddad24cad6afc4aecb4829cb8f06b9acb70c10a44f756fe8bd279949b518e'
)
#==============================================================================#
# Package preparation sequence #
#==============================================================================#
prepare() {
# Change directory to source directory
cd $pkgname
# Run autogen script if exists
if [ -x autogen.sh ]; then
NOCONFIGURE=1 ./autogen.sh
fi
}
#==============================================================================#
# Package building sequence #
#==============================================================================#
build() {
# Change directory to source directory
cd $pkgname
# Default configure options
config_opts=(
'--prefix=/usr'
'--bindir=/usr/bin'
'--sbindir=/usr/bin'
'--libdir=/usr/lib'
'--libexecdir=/usr/lib'
'--sysconfdir=/etc'
'--localstatedir=/var'
'--enable-silent-rules'
'--enable-shared'
'--disable-static'
'--enable-git-version'
'--disable-static'
'--disable-debug'
'--enable-doc'
'--disable-doxygen'
'--with-scriptlet-shell=/usr/bin/bash'
'--with-ldconfig=/usr/bin/ldconfig'
'--with-libcurl'
'--with-gpgme'
'--with-crypto=openssl'
)
# Run package configuration script
./configure "${config_opts[@]}"
# Set correct LDFLAGS to build a shared archive
if [ -f libtool ]; then
sed -e "s/ -shared / $LDFLAGS\0/g" -i libtool
fi
# Build package
make
}
#==============================================================================#
# Package self testing sequence #
#==============================================================================#
check() {
# Change directory to source directory
cd $pkgname
# Run internal checks
make -k check
}
#==============================================================================#
# Package installation sequence #
#==============================================================================#
package() {
# Change directory to source directory
cd $pkgname
# Install files
make DESTDIR=$pkgdir install
# Change directory to target directory
cd $pkgdir
# Install Arch specific stuff
install -Dm644 $srcdir/pacman.conf etc/pacman.conf
install -Dm644 $srcdir/makepkg.conf etc/makepkg.conf
}
################################################################################
# END OF FILE #
################################################################################
|