diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 28 | ||||
-rw-r--r-- | PKGBUILD | 10 |
3 files changed, 23 insertions, 19 deletions
@@ -5,14 +5,14 @@ pkgbase = ocaml-fileutils url = https://github.com/gildor478/ocaml-fileutils arch = x86_64 arch = aarch64 - license = custom:LGPL2.1 with linking exception + license = LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception checkdepends = ocaml-ounit>=2.0.0 makedepends = dune>=1.11.0 depends = ocaml>=4.03.0 depends = ocaml-seq depends = ocaml-stdlib-shims options = !strip - source = ocaml-fileutils-0.6.4-2.tar.gz::https://github.com/gildor478/ocaml-fileutils/archive/v0.6.4.tar.gz + source = ocaml-fileutils-0.6.4.tar.gz::https://github.com/gildor478/ocaml-fileutils/archive/v0.6.4.tar.gz sha512sums = fed41c0c98bd9a2dde18335f0c7fd721b609f936001424eff200bca058146af55134f1d245b143bd211ece37bc036b3308528b193a6b578735b27891181f07e1 pkgname = ocaml-fileutils diff --git a/.gitignore b/.gitignore index 82b3c183d5d4..076d904dd4ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,14 @@ -# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore -*.tar -*.tar.* -*.rpm -*.jar -*.exe -*.msi -*.zip -*.tgz -*.log -*.log.* -*.sig - -*/ +# Only exclude files from the root of the package repo, as some AUR helpers download sources into the directory of the repo, +# which causes the gitignore file to apply to them too, which breaks some builds +# Based on https://github.com/github/gitignore/blob/main/ArchLinuxPackages.gitignore +/*.tar +/*.tar.* +/*.rpm +/*.jar +/*.exe +/*.msi +/*.zip +/*.tgz +/*.log +/*.log.* +/*.sig @@ -11,12 +11,12 @@ pkgrel='2' pkgdesc='OCaml API to manipulate real files and filenames' arch=('x86_64' 'aarch64') url="https://github.com/gildor478/$pkgname" -license=('custom:LGPL2.1 with linking exception') +license=('LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception') depends=('ocaml>=4.03.0' 'ocaml-seq' 'ocaml-stdlib-shims') makedepends=('dune>=1.11.0') checkdepends=('ocaml-ounit>=2.0.0') options=('!strip') -source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/v$pkgver.tar.gz") +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha512sums=('fed41c0c98bd9a2dde18335f0c7fd721b609f936001424eff200bca058146af55134f1d245b143bd211ece37bc036b3308528b193a6b578735b27891181f07e1') _sourcedirectory="$pkgname-$pkgver" @@ -35,6 +35,10 @@ package() { cd "$srcdir/$_sourcedirectory/" DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --docdir '/usr/share/doc' --mandir '/usr/share/man' --release --verbose + for _folder in "$pkgdir/usr/share/doc/"*; do + mv "$_folder" "$pkgdir/usr/share/doc/ocaml-$(basename "$_folder")" + done + install -dm755 "$pkgdir/usr/share/licenses/$pkgname" - ln -sf "/usr/share/doc/$pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt" + ln -sf "/usr/share/doc/$pkgname/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |