blob: 64a8c11865017fc2629e105ddf1d79205ad370eb (
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
|
# Maintainer: Christopher Arndt <chris -at- chrisarndt -dot- de>
_pkgname=xcftools
pkgname="${_pkgname}-git"
pkgver=1.0.7.r18.196f517
pkgrel=1
pkgdesc="Command line tools for extracting images and information from GIMP XCF files (Git version)."
url="https://github.com/j-jorge/xcftools/"
arch=('x86_64' 'i686')
license=('Custom')
depends=('libpng' 'perl')
makedepends=('git')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
source=("${_pkgname}::git+https://github.com/j-jorge/xcftools.git"
"LICENSE")
sha256sums=('SKIP'
'ad91bc83ff4050aca9867ee0d9b5921f8a31fe50d37b9aaf0e260aa0b4e8987a')
pkgver() {
cd "${srcdir}/${_pkgname}"
ver=$(grep PACKAGE_VERSION= configure | cut -f 2 -d "'")
echo $ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "${srcdir}/${_pkgname}"
./configure --prefix=/usr
make
}
package() {
cd "${srcdir}/${_pkgname}"
make DESTDIR="${pkgdir}" install
install -Dm644 "${srcdir}/LICENSE" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=2 sw=2 et:
|