summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 291349045a0c41170f134d7eac42ea599054ab99 (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
# Maintainer: Auguste Pop <auguste [at] gmail [dot] com>

pkgname=pkgcacheclean
pkgver=1.8.2
pkgrel=5
pkgdesc="Application to clean the pacman cache"
arch=('any')
url='https://bbs.archlinux.org/viewtopic.php?pid=841774'
license=('GPL')
depends=('pacman>=5')
source=($pkgname.c
        $pkgname.8)
md5sums=('d79fac7e27381249774fc8e6f15d7f2e'
         '965889f755e4611c12f8c9ac0048372d')

build()
{
    cd "$srcdir"
    gcc -o $pkgname $CFLAGS -DVERSION=\"$pkgver\" -DCARCH=\"$CARCH\" \
        $pkgname.c -lalpm $LDFLAGS
    gzip --keep --force $pkgname.8
}

package()
{
    install -m 755 -D "$srcdir/$pkgname" "$pkgdir/usr/bin/$pkgname"
    install -m 644 -D "$srcdir/$pkgname.8.gz" "$pkgdir/usr/share/man/man8/$pkgname.8.gz"
}