1 # vim: set ts=4 sw=4 et:
3 # This hook executes the following tasks:
4 # - Looks on non -devel packages for files that should be in the -devel package
5 # - Searches for solinks (.so) and archives (.a) on usr/lib
6 # - Searches for executables in usr/bin that end with -config and a respective manpage
11 if [[ "$pkgname" == *"-devel" ]]; then
15 if [[ "$subpackages" != *"-devel" ]]; then
19 for f
in $
(find $PKGDESTDIR -type d
); do
20 case "${f#$PKGDESTDIR}" in
22 msg_warn
"usr/include should be in -devel package\n"
25 msg_warn
"usr/share/pkgconfig should be in -devel package\n"
28 msg_warn
"usr/lib/pkgconfig should be in -devel package\n"
31 msg_warn
"usr/share/vala should be in -devel package\n"
34 msg_warn
"usr/share/gir-1.0 should be in -devel package\n"
37 msg_warn
"usr/share/man/man3 should be in -devel package\n"
40 msg_warn
"usr/share/aclocal should be in -devel package\n"
43 msg_warn
"usr/share/cmake should be in -devel package\n"
46 msg_warn
"usr/lib/cmake should be in -devel package\n"
49 msg_warn
"usr/share/gtk-doc should be in -devel package\n"
52 msg_warn
"usr/lib/qt5/mkspecs should be in -devel package\n"
57 if [ -n "$(find $PKGDESTDIR/usr/lib -maxdepth 1 -type l -iname '*.so' 2>/dev/null)" ]; then
61 if [ -n "$(find $PKGDESTDIR/usr/lib -maxdepth 1 -type f -iname '*.a' 2>/dev/null)" ]; then
65 if [ -d $PKGDESTDIR/usr
/bin
]; then
66 for x
in $
(find $PKGDESTDIR/usr
/bin
-type f
-executable -iname '*-config'); do
67 msg_warn
"${x#$PKGDESTDIR\/} should be in -devel package\n"
71 if [ -d $PKGDESTDIR/usr
/man
/man1
]; then
72 for m
in $
(find $PKGDESTDIR/usr
/man
/man1
-type f
-iname '*-config.1'); do
73 msg_warn
"${m#$PKGDESTDIR\/} should be in -devel package\n"
77 if [ -n "$solink" ]; then
78 msg_warn
"usr/lib/*.so should be in -devel package\n"
81 if [ -n "$archive" ]; then
82 msg_warn
"usr/lib/*.a should be in -devel package\n"