arch-packages/PKGBUILD

35 lines
669 B
Text
Raw Normal View History

2020-12-21 13:35:42 +01:00
# Maintainer: N Fytilis <n-fit AT live.com>
2020-12-21 13:40:55 +01:00
_pkgbase=ntfs2btrfs
pkgname=$_pkgbase-git
pkgbase=$_pkgbase-git
2021-10-03 13:46:21 +02:00
pkgver=r220.7664363
pkgrel=1
2020-12-21 13:16:05 +01:00
epoch=
pkgdesc="Convertion from ntfs to btrfs keeping NT metadata"
arch=(any)
url=""
license=('GPL')
depends=(fmt)
makedepends=(cmake gcc)
source=("git+https://github.com/maharmstone/ntfs2btrfs")
md5sums=(SKIP)
2021-10-03 13:46:21 +02:00
pkgver() {
cd "$_pkgbase"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
2020-12-21 13:16:05 +01:00
build() {
2021-10-03 13:46:21 +02:00
cd "$_pkgbase"
2020-12-21 13:16:05 +01:00
mkdir b || true
cd b
2021-10-03 13:46:21 +02:00
cmake -DCMAKE_INSTALL_PREFIX='/usr' ..
make
2020-12-21 13:16:05 +01:00
}
package() {
2021-10-03 13:46:21 +02:00
cd "$_pkgbase/b"
make DESTDIR="$pkgdir/" install
2021-09-25 10:08:44 +02:00
mv $pkgdir/usr/sbin $pkgdir/usr/bin
2020-12-21 13:16:05 +01:00
}