arch-packages/ntfs2btrfs-git/PKGBUILD

36 lines
874 B
Text
Raw Normal View History

# Maintainer: Manuel Hüsers <aur@huesers.de>
# Contributor: N Fytilis <n-fit AT live.com>
pkgname=ntfs2btrfs-git
pkgver=20230501.r0.ga8fd1a2
2021-10-03 13:46:21 +02:00
pkgrel=1
pkgdesc="In-place conversion of Microsoft's NTFS filesystem to the open-source filesystem Btrfs"
arch=('x86_64')
url="https://github.com/maharmstone/${pkgname%-git}"
license=('GPL2')
depends=('fmt' 'zlib' 'lzo' 'zstd')
makedepends=('git' 'cmake' 'pkgconf')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')
2020-12-21 13:16:05 +01:00
2021-10-03 13:46:21 +02:00
pkgver() {
cd "${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/release-//g;s/-/./g'
2021-10-03 13:46:21 +02:00
}
2020-12-21 13:16:05 +01:00
build() {
cmake -B build -S "${pkgname%-git}" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_SBINDIR=bin \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=OFF
cmake --build build
2020-12-21 13:16:05 +01:00
}
package() {
DESTDIR="$pkgdir" cmake --install build
2020-12-21 13:16:05 +01:00
}