crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

Pkgfile (1335B)


      1 # Description: Core database of common types
      2 # URL: https://freedesktop.org/Software/shared-mime-info
      3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com
      4 # Depends on: glib itstool
      5 
      6 name=shared-mime-info
      7 version=2.4
      8 release=2
      9 
     10 # https://gitlab.freedesktop.org/xdg/shared-mime-info/-/blob/master/xdgmime
     11 _xdgmimever=e861d3eb3d522a9c22c5a870526728e2a3d9fc04
     12 
     13 source=(https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$version/$name-$version.tar.bz2
     14   https://gitlab.freedesktop.org/xdg/xdgmime/-/archive/$_xdgmimever/xdgmime-$_xdgmimever.tar.bz2
     15   musl-fix.patch)
     16 
     17 build() {
     18   patch -p0 < $SRC/musl-fix.patch
     19   # Build mime database
     20   meson setup xdgmime-$_xdgmimever xdgmime-build \
     21     --prefix=/usr \
     22     --buildtype=plain \
     23     --wrap-mode nodownload \
     24     -D b_pie=true
     25   meson compile -C xdgmime-build
     26 
     27   meson setup $name-$version build \
     28     --prefix=/usr \
     29     --buildtype=plain \
     30     --wrap-mode nodownload \
     31     -D b_lto=true \
     32     -D b_pie=true \
     33     -D update-mimedb=false \
     34     -D xdgmime-path=$SRC/xdgmime-build
     35   meson compile -C build
     36   DESTDIR=$PKG meson install -C build
     37 
     38   # Builds the initial database
     39   /usr/bin/env PKGSYSTEM_ENABLE_FSYNC=0 $PKG/usr/bin/update-mime-database $PKG/usr/share/mime
     40 
     41   rm -r $PKG/usr/share/locale
     42 
     43   find $PKG/usr/share/mime -type f -exec chmod 644 {} ';'
     44 }