summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0401f6cfc46392edf7fa034964aaf229ff7052ff (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
# Maintainer: Frederik Schwan <freswa at archlinux dot org>

pkgname=duperemove-git
pkgver=0.15.r1.ge78bbb5
pkgrel=1
pkgdesc="Btrfs extent deduplication utility"
arch=('x86_64' 'i686')
url="https://github.com/markfasheh/duperemove"
license=('GPL')
depends=('libbsd' 'glib2' 'sqlite')
makedepends=('git' 'pandoc')
provides=('duperemove')
conflicts=('duperemove')
source=(${pkgname}::'git+https://github.com/markfasheh/duperemove.git#branch=master')
b2sums=('SKIP')

pkgver() {
  cd ${pkgname}
  echo $(git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
}

build() {
  cd ${pkgname}
  CFLAGS+=" --std=c23" make
}

package() {
  cd ${pkgname}
  make PREFIX=/usr SBINDIR=/usr/bin DESTDIR="${pkgdir}" install
}