diff --git a/ntfs2btrfs-git/.SRCINFO b/ntfs2btrfs-git/.SRCINFO new file mode 100644 index 0000000..f9a12f9 --- /dev/null +++ b/ntfs2btrfs-git/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = ntfs2btrfs-git + pkgdesc = Convertion from ntfs to btrfs keeping NT metadata + pkgver = r220.7664363 + pkgrel = 1 + arch = any + license = GPL + makedepends = cmake + makedepends = gcc + depends = fmt + source = git+https://github.com/maharmstone/ntfs2btrfs + md5sums = SKIP + +pkgname = ntfs2btrfs-git diff --git a/ntfs2btrfs-git/.gitignore b/ntfs2btrfs-git/.gitignore new file mode 100644 index 0000000..17864e6 --- /dev/null +++ b/ntfs2btrfs-git/.gitignore @@ -0,0 +1,4 @@ +ntfs2btrfs/ +pkg/ +src/ +*pkg.tar* diff --git a/ntfs2btrfs-git/PKGBUILD b/ntfs2btrfs-git/PKGBUILD new file mode 100644 index 0000000..9ccf8ba --- /dev/null +++ b/ntfs2btrfs-git/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: N Fytilis +_pkgbase=ntfs2btrfs +pkgname=$_pkgbase-git +pkgbase=$_pkgbase-git +pkgver=r220.7664363 +pkgrel=1 +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) + +pkgver() { + cd "$_pkgbase" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$_pkgbase" + mkdir b || true + cd b + cmake -DCMAKE_INSTALL_PREFIX='/usr' .. + make +} + +package() { + cd "$_pkgbase/b" + make DESTDIR="$pkgdir/" install + mv $pkgdir/usr/sbin $pkgdir/usr/bin +}