summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b42f75c334922d0dddb4b2f01d28c4fd97aeb65b (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
# Maintainer: farseerfc <farseerfc@archlinuxcn.org>
# Contributor: Nyarcel <nyarcel AT SPAMFREE gmail DOT com>
# Contributor: Lara Maia <lara@craft.net.br>
# Contributor: BlackICE <manfredi at gmail.com>
# Contributor: Daenyth <Daenyth+Arch AT gmail DOT com>

pkgname=pkgtools
pkgver=25
pkgrel=9
pkgdesc="A collection of scripts for Arch Linux packages"
arch=('any')
url="https://bbs.archlinux.org/viewtopic.php?pid=384196"
license=('GPL')
depends=('coreutils'    # for comm in whoneeds
         'bash>=4'
         'pcre'
         'libarchive'
         'python')
optdepends=(
            'gem2arch: Create PKGBUILD from Ruby Gem Package'
            'pacman-contrib: whoneeds require pactree'
            'pkgfile: Required to use pkgconflict'
            'namcap: Package analyzer')
provides=('newpkg' 'pip2arch')
backup=('etc/pkgtools/newpkg.conf'
        'etc/pkgtools/spec2arch.conf')
install=pkgtools.install
source=("${pkgname}-v${pkgver}.tar.gz::https://github.com/Daenyth/pkgtools/tarball/v$pkgver"
        "https://raw.githubusercontent.com/bluepeppers/pip2arch/master/pip2arch.py" # submodule issue
        'whoneeds.bash')
md5sums=('9e9d7aad5ba8ecee1b798c3ed4e0a0a7'
         '9267993a72489019ec1536c887304374'
         'ec05d3bd65bb492dfb7a528b3d42fbf5')

prepare() {
	cp -f pip2arch.py Daenyth-"$pkgname"-*/scripts/pip2arch/
}

package() {
	cp whoneeds.bash "$srcdir"/Daenyth-"$pkgname"-*/scripts/

	cd Daenyth-"$pkgname"-*

	make DESTDIR="$pkgdir" install
}