aboutsummaryrefslogtreecommitdiff
path: root/packages/PKGBUILD
blob: d4b23119c9a510100bcca59413bf22d1a5f1fe11 (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
# -*- sh -*-

# Build squashfs-tools-ng for Archlinux.
#
# How to build package for Archlinux:
#
#   sudo pacman -S --noconfirm fakeroot binutils
#   makepkg --noconfirm -Cfsir PKGBUILD
#
# Check result with
#
#   namcap -i squashfs-tools-*.pkg.tar.zst  PKGBUILD
#

# Maintainer: Sébastien Gross <seb•ɑƬ•chezwam•ɖɵʈ•org>
# Contributor:

pkgname=('squashfs-tools-ng' 'squashfs-tools-ng-doc')
pkgver=1.0.2
pkgrel=1
epoch=
pkgdesc="New set of tools for working with SquashFS images."
url="https://github.com/AgentD/squashfs-tools-ng"
license=('GPL3')
arch=('x86_64')
groups=()
makedepends=(
    'fakeroot'
    'binutils'
    'autoconf'
    'automake'
    'autogen'
    'libtool'
    'm4'
    'make'
    'gcc'
    'doxygen')
#
depends=('zstd' 'lzo' 'attr')
checkdepends=()
optdepends=('squashfs-tools')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/AgentD/squashfs-tools-ng/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
noextract=()

## Generated using: makepkg -g PKGBUILD
md5sums=('7e78c57513d58e374afc60c000032fa7')
sha1sums=('a50a7d2aa31b71b22de4297e23e5f68e5fc8c0e1')
sha224sums=('43abdd9552b3872380387b5dadfd44e8e7dbd8cab1772bef83dea7b7')
sha256sums=('5eb0e3faaba6cef92e0c03b13b9965e744d8eb5291db5b118970d4c34eeaec8c')
sha384sums=('47f589f7b6c82d39c404e67888045beca5062b595766b294d337ea0c8e026d063b58b7b4e83fd81cea0ea48fec1c2545')
sha512sums=('409cec3c932ad0653958746b07371ce19979cd53f9f38482243bc425a08ca62c79c5560a03c0c7d0560bb04234dab7a94a60bbe1a1ed7497f3afcec744e2fda6')
b2sums=('c2a48909dd9cac89a45cc468735b24f842a8466629ad75f523c1db736fe51036c96bcb46a2b351aa24753028a88ea5efa56aab3ca87efdd339e6d58a0b92abd9')

validpgpkeys=()

prepare() {
    cd "$pkgname-$pkgver"
}

build() {
    cd "$pkgname-$pkgver"
    ./autogen.sh
    ./configure --prefix=/usr
    make
    make doxygen-doc
}

check() {
    cd "$pkgname-$pkgver"
    make -k check
}

package_squashfs-tools-ng() {
    #depends=('zstd' 'attr' 'zlib' 'xz' 'lzo' )
    cd "$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
}

package_squashfs-tools-ng-doc() {
    arch=('any')
    optdepend=()
    depends=()
    cd "$pkgbase-$pkgver"
    install -d "$pkgdir/usr/share/doc/$pkgbase"
    cp -a doxygen-doc/* "$pkgdir/usr/share/doc/$pkgbase"
}